# \[F8\]AS 2 how does the tab selction work?

**URL:** <https://forum.kirupa.com/t/f8-as-2-how-does-the-tab-selction-work/295875>\
**Category:** flash\
**Created:** [September 6, 2009, 3:15pm UTC](https://forum.kirupa.com/t/f8-as-2-how-does-the-tab-selction-work/295875 "2009-09-06T15:15:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![capdetrons](https://avatars.discourse-cdn.com/v4/letter/c/df705f/32.png) [@capdetrons](https://forum.kirupa.com/u/capdetrons)\
**Post date:** [September 6, 2009, 3:15pm UTC](https://forum.kirupa.com/t/f8-as-2-how-does-the-tab-selction-work/295875/1 "2009-09-06T15:15:33Z")

</div>

Hello,

I have this code on my username and password textfield components and I need to click on the username to be able to jump to the password field.

username\_txt.tabIndex = 1;  
password\_txt.tabIndex = 2;

If I try to add the Selection.setFocus on the username field, then the tabIndex doesn’t work.

I suppose I might have to build a listener event, but am not sure.

Any suggestion will be appreciated. Thanks.
