# Text Field Button

**URL:** <https://forum.kirupa.com/t/text-field-button/233744>\
**Category:** flash\
**Created:** [July 26, 2007, 3:33pm UTC](https://forum.kirupa.com/t/text-field-button/233744 "2007-07-26T15:33:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel619](https://avatars.discourse-cdn.com/v4/letter/d/b5a626/32.png) [@daniel619](https://forum.kirupa.com/u/daniel619)\
**Post date:** [July 26, 2007, 3:33pm UTC](https://forum.kirupa.com/t/text-field-button/233744/1 "2007-07-26T15:33:49Z")

</div>

Using Actionscript 3.0, I’m making a button class which instatiates an image and a textfield that goes above it. I’ve also made the text field un-selectable (textfield.selectable = false;) so the text cant be highlighted.

The problem is that I have rollover event handlers for this button class and when I roll over the text, its as if the rollover event handlers won’t pick it up. How do I make it so flash treats the image AND the text field as a whole button?:trout:
