4 Replies Latest reply on Feb 7, 2011 10:34 PM by scottchu.tw

    How to get correct coordinate & size of components in scaled swf

    scottchu.tw Level 1

      I use canvas (I set it to fit whole screen size) to enclose a swfloader which loads a swf with width & height set to 100%. This swf has a movieclip. How can I get the correct coordinates of its position and its size after scaled in Flex?

       

      In the Flash CS4, the movielip has x=40, y=700. In Flex, the swf is scaled 100% but when I get the x value of this movieclip, it's still 40. I try to get the scale ratio of x-axis by refering to swf's scaleX. But its 1, weird enough.

       

      How can I get correct coordinates of movieclip?