# Text Field Capturing Mouse Events

**URL:** <https://forum.kirupa.com/t/text-field-capturing-mouse-events/271634>\
**Category:** flash\
**Created:** [September 25, 2008, 5:15pm UTC](https://forum.kirupa.com/t/text-field-capturing-mouse-events/271634 "2008-09-25T17:15:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![webmaster4u](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/webmaster4u/32/3478_2.png) [@webmaster4u](https://forum.kirupa.com/u/webmaster4u)\
**Post date:** [September 25, 2008, 5:15pm UTC](https://forum.kirupa.com/t/text-field-capturing-mouse-events/271634/1 "2008-09-25T17:15:29Z")

</div>

I have a text field that needs to capture mouse events.

What I want to do is be able to know when a user clicks on the text box to edit the text. The text box is created dynamically, and right now I have the event handler triggering when the user types, but i’d like it when the text field itself becomes focused.

Any way to do this?
