Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-22902

UIComponent.scaleX, scaleY differ from transform.matrix.a,d

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 3.5 (Release)
    • None
    • mx: General
    • None
    • Affected OS(s): Windows
      Affected OS(s):
      Language Found: English

    Description

      Steps to reproduce:
      private function testScale():void

      { var obj:DisplayObject = new mx.core.UIComponent; var tm:Matrix = new Matrix(); tm.scale(20,20); obj.transform.matrix = tm; trace("obj="+obj+" obj.transform.maxtrix.a="+ obj.transform.matrix.a+ " obj.scaleX="+obj.scaleX); obj.scaleX = 25; obj.transform.matrix = new Matrix; trace("obj="+obj+" obj.transform.maxtrix.a="+ obj.transform.matrix.a+ " obj.scaleX="+obj.scaleX); }

      Actual Results:
      obj=UIComponent148 obj.transform.maxtrix.a=20 obj.scaleX=1
      obj=UIComponent148 obj.transform.maxtrix.a=1 obj.scaleX=25

      Expected Results:
      obj=UIComponent148 obj.transform.maxtrix.a=20 obj.scaleX=20
      obj=UIComponent148 obj.transform.maxtrix.a=1 obj.scaleX=1

      works correctly (as "expected") for other (non-UIComponent) DisplayObjects like Sprite, Bitmap.

      Workaround (if any):
      directly set scaleX when doing matrix operations,
      or only use scaleX and do not use matrix ops...

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: