:
- ( )
DisplayObject tabIndex > 0, , TAB tabIndex > 0
tabIndex > 0,
- if
current.tabIndex - next.tabIndex > 1 , tabIndex
tabIndex, ( tabIndex )
-------------------------------------------------- -----------------------------
:
TAB DisplayObjects ( , ) - tabIndex > 0 .
- TAB -
tabIndex = 0 ( DisplayObjects tabIndex == 0), TAB ). tabEnabled = false
- DisplayObject TAB - tabIndex ( ) tabIndex, .
, TAB , , . 10 .
( ):
showclasses.NewFile.mxml:
<mx:VBox xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:fx="http://ns.adobe.com/mxml/2009" data="1,2,3" creationComplete="addFocuses();">
<fx:Script>
<![CDATA[
private function addFocuses():void{
var focs:Array = data.split(',');
One.tabIndex = focs[0];
Two.tabIndex = focs[1];
Three.tabIndex = focs[2];
}
]]>
</fx:Script>
<mx:Label text="One"/>
<mx:TextInput id="One" />
<mx:Label text="Two" />
<mx:TextInput id="Two"/>
<mx:Label text="Three" />
<mx:TextInput id="Three"/>
</mx:VBox>
Main.mxml:
<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:th="showclasses.*">
<mx:HBox>
<th:NewFile data="1,2,3" />
<th:NewFile data="1,2,3" />
<th:NewFile data="1,2,3" />
</mx:HBox>
</mx:Application>
1,2,3; 1,2,3; 1,2,3 - (, tabIndex ), .
2; , 3; 0, null, 1 (null == 0 tabIndex) - , , , .
,