AS3 TextField buttonMode or useHandCursor?

Unfortunatly, no method exits on the TextField class in AS3 as it does not extend the Sprite class, which contains the buttonMode property.

This is most apparent with the annoying problem of having a TextField inside your Sprite/MovieClip you;re trying to use as a button, where even after setting buttonMode = true on the button, rolling over the textfield inside the button will revert the Cursor back to default.

To get round this simply use the mouseChildren = false property on your Sprite/Movieclip button.


myTextFieldContainingSprite.buttonMode = true;Watch Full Movie Online Streaming Online and Download

myTextFieldContainingSprite.mouseChildren = false;

myTextFieldContainingSprite.addEventListener(MouseEvent.MOUSE_DOWN …… etc

52 thoughts to “AS3 TextField buttonMode or useHandCursor?”

Leave a Reply

Your email address will not be published. Required fields are marked *