PDA

View Full Version : how to set tabIndex


MontyCoder
05-17-2008, 11:39 AM
i have made list of inputtext field or comboBox field. both inside the Hbox and VBox, now at my base state there lots of text and comboBox fields.

Now what i need is, i wanna set tabIndex according to my style. Like jump from one text field to another and from there to another by just pressing key “tab”.
Like i use to do same in flash with this code

txt1.tabIndex = 0;
txt3.tabIndex = 1;

but i am not getting how to do same.. in flex.

any one can tell me how do i achieve this

thanks for your time
:)

MontyCoder
05-19-2008, 05:24 AM
no one :(

MontyCoder
05-19-2008, 06:59 AM
problem solved it should be like this

<mx:TextInput id="txt1" tabEnabled="true" tabIndex="4"/>
<mx:TextInput id="txt2" tabEnabled="true" tabIndex="3"/>
<mx:TextInput id="txt3" tabEnabled="true" tabIndex="2"/>
<mx:TextInput id="txt4" tabEnabled="true" tabIndex="1"/>