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


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.