Flash ActionScript 3.0 – TextField buttonMode

Normally you use Sprite.buttonMode = true. Mousing over a TextFields brings up a potentially annoying caret. To get the buttonMode working on a TextField, place the TextField into a Sprite and:

Sprite.buttonMode = true;
Sprite.mouseChildren = false;

Leave a Reply