0 Replies Latest reply on Mar 24, 2010 11:49 AM by kevinklin

    [svn:fx-4.x] 14996: Update for implementing ILayoutDirectionElement in BitmapAsset and SpriteAsset .

    kevinklin Adobe Employee

      Revision: 14996

      Revision: 14996

      Author:   klin@adobe.com

      Date:     2010-03-24 11:49:15 -0700 (Wed, 24 Mar 2010)

      Log Message:

      ***********

      Update for implementing ILayoutDirectionElement in BitmapAsset and SpriteAsset. Instead of trying to handle transforming the assets directly, we leverage AdvancedLayoutFeatures to update the transform matrix of the assets. The main difference between the asset implementations and other ones is that width/height and scaleX/Y are tied to each other. The setters of each of those properties will set the backing value of their respective property. Another change is that we use the existence of layoutFeatures to keep track of whether the asset needs to de-mirror instead of using the mirror variable.

       

      Also, I removed a FIXME from AdvancedLayoutFeatures. We already short-circuit this in the classes that own the AdvancedLayoutFeatures. I changed the FIXMEs for the x getters to TODOs.

       

      QE notes: No

      Doc notes: No

      Bugs: SDK-25879, SDK-25894

      Reviewer: Hans, Carol, Evtim

      Tests run: checkintests

      Is noteworthy for integration: No

       

      Ticket Links:

      ***********

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

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

       

      Modified Paths:

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

          flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.as

          flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/core/BitmapAsset.as

          flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/core/SpriteAsset.as

          flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/core/UITextField.as

          flex/sdk/branches/4.x/frameworks/projects/spark/src/mx/core/UIFTETextField.as