# Using onChanged with the TextInput component

**URL:** <https://forum.kirupa.com/t/using-onchanged-with-the-textinput-component/236356>\
**Category:** Uncategorized\
**Created:** [August 20, 2007, 6:50am UTC](https://forum.kirupa.com/t/using-onchanged-with-the-textinput-component/236356 "2007-08-20T06:50:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![audiohominis](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@audiohominis](https://forum.kirupa.com/u/audiohominis)\
**Post date:** [August 20, 2007, 6:50am UTC](https://forum.kirupa.com/t/using-onchanged-with-the-textinput-component/236356/1 "2007-08-20T06:50:59Z")

</div>

High guys.

```php
mytextfieldA.onChanged=function()
{
    if (mytextfieldA.length==3)
    {
        Selection.setFocus(mytextfieldB);
    }
} 

```

As you gather, the code makes it so that as soon as the user types 3 characters into the field the insertion point automatically jumps to another field.

This works with regular text fields but not with the Flash Pro TextInput component.

Three questions:

1. How do I make it work? :-/
2. Please make it work! :cantlook:
3. Thank you for making it work :hugegrin:
