ActionSript 3.0 children and mouse issues

If you have a movie clip in the form of a button say a graphic in the background and a text in the foreground then in AS 3.0 you might find that

myClip.buttonMode=true

enables the button mode for the parent of the movieclip but not its children. I.e. on focussing the children or the text in our case the hand cursor turns to a mouse pointer. To handle this problem just set the mouseChildren property to false.

myClip.mouseChildren = false;

Comments

Popular posts from this blog

Authoritative Server - MMO

Code dependencies