AS3 Basics: Where’s my hand cursor gone?
- Filed in
- Actionscipt
- Tutorials
- 3 months, 1 week ago by
One of the first things you will notice when you start using Actionscript 3 is Movieclip’s no longer automatically invoke the hand cursor once you set a mouse event. Fortunately the solution is simple:
yourBtn.buttonMode=true; yourBtn.useHandCursor=true;
Now if you just have a textfield inside your Movieclip you are probably wondering why that blasted hand cursor is still hiding from you. To solve this add:
yourBtn.mouseChildren=false;
Setting mouseChildern to false ignores the mouse clicks of all the children inside the Movieclip. What’s super handy about this property is you no longer need to included hidden hotspots as the whole text area becomes the hotspot (not just the text)

COMMENTS