1 Reply Latest reply on Jun 18, 2011 2:15 PM by blazejewicz

    How to Detect Scaling Factor of Image?

    Miggl Level 1

      Hi All,

       

      I have an image like the following:

       

      <s:Image id="img_top"
           horizontalCenter="0"
           verticalCenter="0"
           click="{this.setState('Normal');}"
           smooth="true"
           ready="img_top_readyHandler(event)"
           alpha="1"
           fillMode="scale"
           scaleMode="letterbox"
      />
      
      

       

       

      I would like to detect at run-time by what factor the image is scaled. Inspecting img_top.scaleX always results in 1. What am I missing?

       

      Thanks!

      ~Mike