<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="initApp()">
<mx:Script>
	<![CDATA[
	private function setFocusTxtProblem(event:FocusEvent):void{
		event.preventDefault();
		stage.focus = txt01;
		txt01.setSelection(txt01.text.length,txt01.text.length);		
	}
	private function setFocusTxtSolution(event:FocusEvent):void{
		event.preventDefault();
		stage.focus = txt11;
		txt11.setSelection(txt11.text.length,txt11.text.length);		
	}
	private function initApp():void{
		txt12.addEventListener(FocusEvent.KEY_FOCUS_CHANGE,setFocusTxtSolution);
	}
	]]>
</mx:Script>
	<mx:Text text="Problem&#xa;1. Click on TextInput1 and type something...Press Tab&#xa;2. Type in TextInput2 and type something...Press Tab&#xa;3. Now the focus is supposed to go back to TextInput1, but it doesnt... Observe results&#xa;" width="100%" height="67"/>

<mx:HBox>
	<mx:Label text="TextInput1"/>
	<mx:TextInput id="txt01"/>
</mx:HBox>
<mx:HBox>
	<mx:Label text="TextInput2"/>
	<mx:TextInput id="txt02" focusOut="setFocusTxtProblem(event)"/>
</mx:HBox>
<mx:HBox>
	<mx:Label text="TextInput3" />
	<mx:TextInput  id="txt03"/>
</mx:HBox>
	<mx:Text text="Solution... Try it out :)" width="100%"/>
<mx:HBox>
	<mx:Label text="TextInput1"/>
	<mx:TextInput id="txt11"/>
</mx:HBox>
<mx:HBox>
	<mx:Label text="TextInput2"/>
	<mx:TextInput id="txt12"/>
</mx:HBox>
<mx:HBox>
	<mx:Label text="TextInput3" />
	<mx:TextInput  id="txt13"/>
</mx:HBox>
</mx:Application>
