Himanshu Yadav
Himanshu Yadav

Reputation: 13585

Managing tabIndex property of Flex fields

My application has multiple form and each form with multiple fields.
I find tabIndex property difficult to maintain. Whenever I have to add/reposition/delete a field on a given form, assigning a proper tabIndex number take maximum time.
Is there any way to maintain tabIndexes in a better way? May be while initializing a form or automating it somehow.

I use Flash Builder 4.6.

Upvotes: 0

Views: 288

Answers (1)

Yury Euceda
Yury Euceda

Reputation: 566

It's better not to change the internal tab number of components. And if what you want is to focus next textfield every time you press enter key then add next code line to every textfield definition:

enter="{focusManager.getNextFocusManagerComponent().setFocus()}"

and voila! Problem solved. Using this way no matter if you delete or change components because it's very generic.

cheers

Upvotes: 1

Related Questions