Flexcomps’s Weblog

Enabling Handcursor on a MovieClip having dynamic TextField in AS3

Posted by: Yogesh Puri on: September 25, 2008

You can enable the hand cursor on a MovieClip by defining the following statement

MovieClip.buttonMode = true;

However the solution does not work in-case you have a dynamic textField in that movieclip. To enable hand in this case you have to additionally write the following statement

MovieClip.mouseChildren = false;

The reason is that the mouseChildren property determines whether or not the children of the object are mouse enabled. If an object is mouse enabled, a user can interact with it by using a mouse. The default is true which makes the dynamic textfield interactable and due to the textfield behaviour the flash player does not show the hand-cursor.

11 Responses to "Enabling Handcursor on a MovieClip having dynamic TextField in AS3"

thanks mate. searched for that..

thanks. I too searched ..

sorted me out a treat!
spent the last hour puzzling over why i can’t click an MC with dynamic text in it.

thanks

I’m confused.

If the dynamic TextField is a child of the MovieClip, than why would you set mouseChildren = false. Wouldn’t that disable the mouse from accessing the TextField? Why does this work then?

Thanks Yogesh,

was spending hours trying to fix this problem.

like send from above!

peace out

thank you sooooo much :)

Thank you for this. I was searching for it.

[...] More: Enabling Handcursor on a MovieClip having dynamic TextField in AS3 [...]

Great…Thanks a lot

Leave a Reply

 

September 2008
M T W T F S S
« Aug   Oct »
1234567
891011121314
15161718192021
22232425262728
2930  

Blog Stats

  • 94,229 hits