# Triggering an action off of an input text field without using a button

**URL:** <https://forum.kirupa.com/t/triggering-an-action-off-of-an-input-text-field-without-using-a-button/292761>\
**Category:** flash\
**Created:** [July 18, 2009, 3:26pm UTC](https://forum.kirupa.com/t/triggering-an-action-off-of-an-input-text-field-without-using-a-button/292761 "2009-07-18T15:26:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![small\_guy](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@small\_guy](https://forum.kirupa.com/u/small_guy)\
**Post date:** [July 18, 2009, 3:26pm UTC](https://forum.kirupa.com/t/triggering-an-action-off-of-an-input-text-field-without-using-a-button/292761/1 "2009-07-18T15:26:00Z")

</div>

I have an input text field set to Password and set to a max of 8 characters. When the 8 characters have been typed in to the input field this needs to trigger (without any sort of button action involved) the playhead moving to frame 20 of the timeline.

I have labeled my input field as passwordTxt.

Any ideas on the AS 2.0 code to make this work? Thank you.
