# Select a text field using AS3

**URL:** <https://forum.kirupa.com/t/select-a-text-field-using-as3/287764>\
**Category:** Uncategorized\
**Created:** [May 6, 2009, 12:58am UTC](https://forum.kirupa.com/t/select-a-text-field-using-as3/287764 "2009-05-06T00:58:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruiganga](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ruiganga/32/3679_2.png) [@ruiganga](https://forum.kirupa.com/u/ruiganga)\
**Post date:** [May 6, 2009, 12:58am UTC](https://forum.kirupa.com/t/select-a-text-field-using-as3/287764/1 "2009-05-06T00:58:09Z")

</div>

Hi

I want to select a textField using a button. For example:

when I click the button, the text field content is erased and automatically selected so I just have to typ the text.

How I do this?
