0 Replies Latest reply on Apr 23, 2010 3:01 PM by kevinklin

    [svn:fx-trunk] 15675: Merge from 4.x to trunk.

    kevinklin Adobe Employee

      Revision: 15675

      Revision: 15675

      Author:   klin@adobe.com

      Date:     2010-04-23 15:00:42 -0700 (Fri, 23 Apr 2010)

      Log Message:

      ***********

      Merge from 4.x to trunk.

       

      Fix for http://bugs.adobe.com/jira/browse/SDK-26267. Embedded assets were depending on AdvancedLayoutFeatures and other framework classes. This caused a simple AS-only swf size to be quite large, and even fail to build in an AS-only project in FB. The fixes are:

       

      -Softlink FlexVersion using hasDefinition/getDefinition. This gets rid of the dependency on the ResourceManager, which fixes the compile error in FB.

      -Introduce a new interface, IAssetLayoutFeatures, which contains a subset of the API from AdvancedLayoutFeatures only used by the asset classes. AdvancedLayoutFeatures implements this interface. The interface also removes the API dependency on TransformOffsets.

      -We can then softlink AdvancedLayoutFeatures and MatrixUtil to remove that dependency.

      -Use the hardcoded string "ltr" instead of the constant LayoutDirection.LTR to remove the dependency on LayoutDirection.

       

      All of these fixes bring swf size down to near the original (around 2k more in the reference case).

       

      QE notes: No

      Doc notes: No

      Bugs: SDK-26267

      Reviewer: Alex, Carol

      Tests run: checkintests, Mirroring

      Is noteworthy for integration: No

       

      Ticket Links:

      ***********

          http://bugs.adobe.com/jira/browse/SDK-26267

          http://bugs.adobe.com/jira/browse/SDK-26267

       

      Modified Paths:

      **************

          flex/sdk/trunk/frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as

          flex/sdk/trunk/frameworks/projects/framework/src/mx/core/BitmapAsset.as

          flex/sdk/trunk/frameworks/projects/framework/src/mx/core/SpriteAsset.as

       

      Added Paths:

      ***********

          flex/sdk/trunk/frameworks/projects/framework/src/mx/core/IAssetLayoutFeatures.as

       

      Property Changed:

      ****************

          flex/sdk/trunk/