Don't know which other learning material to point you to, but the ASDoc for 
Stage says that you shouldn't set the transform so it is likely that setting 
parts of the transform may not work either.

Sounds like transforming S is working as expected as far as visuals are 
concerned.  When I have an interactivity problem, I next look at the 
interactivity properties like buttonMode, mouseEnabled and mouseChildren.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of ACasualObserver
Sent: Friday, May 01, 2009 1:10 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] I am so confused about the coordinate and transformation 
in AS 3





We have crated a subclass of Sprite (let's call it S) and added it to the 
stage. Then we added another Sprite that draws polygon (P) and a TextField (T) 
to S.

If we get the stage.transform.matrix, scales it, and put it back, P scales 
correctly but T stays at the same location.

If we get the S.transform.matrix, scales it, and put it back, everything scales 
correctly. The problem is that if we right click on an area that use to be 
empty before scale but no empty now, we don't get the context menu.

I have no logical explanation mostly due to lack of experience with AS 3.

Any help is appreciated. If there is book or online article with in depth 
explanation would be very helpful. I have learned AS 3 by reading AS 3 Cookbook 
by O'Reilly and Flex Builder help docs. Any other suggestion for learning 
material?

Reply via email to