0 Replies Latest reply on Nov 21, 2008 1:06 PM by Peter Farland

    [svn] 4159: Enhancement SDK-18016 - updating mxmlc' s Embed functionality to recognize .pbj files as precompiled Shader files.

    Peter Farland Level 3
      Revision: 4159
      Author: pfarland@adobe.com
      Date: 2008-11-21 13:06:29 -0800 (Fri, 21 Nov 2008)

      Log Message:
      -----------
      Enhancement SDK-18016 - updating mxmlc's Embed functionality to recognize .pbj files as precompiled Shader files. This change still retains the old octet stream MIME type mapping to a ByteArray based class, but this change removes the hoop you have to jump through to embed a Shader. The new Embed usage should simply be as follows:

      [Embed(source="TubeView.pbj")]
      private var TubeViewClass:Class; //Subclass of flash.display.Shader

      Also updating Embed MIME types to recognize .dfont files since these are supported by CFFFontManager.

      Finally, updating FXG TextGraphic -> SymbolClass to use a simple FlexSprite instead of a Group. TextGraphic should now render at the right depth among SWF graphics primitives when compile time optimized FXG is used.

      QE: Yes
      Doc: If we've documented embedding .pbj, this is a simpler approach and represents a slight change in syntax.
      Checkintests: Pass
      Reviewer: Corey (Note he said he'll update ShaderFilter with a new property to accept a shader directly in a future check-in).

      Ticket Links:
      ------------
      http://bugs.adobe.com/jira/browse/SDK-18016

      Modified Paths:
      --------------
      flex/sdk/trunk/frameworks/projects/flex4/src/mx/filters/ShaderFilter.as
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/EmbedUtil.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/TextFXGGraphics.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/TextHelper.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/media/DataTranscoder.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/media/FontTranscoder.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/MimeMappings.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/tools/WebTierAPI.java

      Added Paths:
      -----------
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/media/PBJTranscoder.java