flex enter替代tab
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import mx.events.*;
import mx.managers.IFocusManager;
import mx.managers.FocusManager
//移动焦点*******
private function nextFocus(event:Event):void
{
var fm:IFocusManager=event.target.focusManager;
fm.moveFocus(FocusRequestDirection.FORWARD);
}
]]>
</mx:Script>
<mx:Panel width="769" height="491" layout="absolute">
<mx:Label text="name"/>
<mx:TextInput id="name3" enter="nextFocus(event)" x="23" y="68" tabIndex="1"/>
<mx:Label text="sex"/>
<mx:TextInput id="name2" enter="nextFocus(event)" x="104" y="228" tabIndex="3"/>
<mx:Label text="age"/>
<mx:Label text="school"/>
<mx:TextInput id="name4" enter="nextFocus(event)" x="147" y="353" tabIndex="4"/>
<mx:TextInput id="playerId" enter="nextFocus(event)" x="78" y="152" tabIndex="2"/>
</mx:Panel>
</mx:Application>