Change the line of code in your goTo() method to be: focusManager.setFocus(one);
--- In [email protected], "dffmyco" <[EMAIL PROTECTED]> wrote: > > Three text input controls. Tab enabled, tab index 1,2,3. On the > focus out of text control three I run a function to set focus back > to text control 1. Text control 1 gets the focus(blue outline) but > the cursor is not displayed until I click on the box. What do I have > to do to have the cursor appear in the text control. > > Thanks, Dave > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > layout="absolute"> > <mx:Script> > <![CDATA[ > import mx.core.*; > > private function goto():void{ > one.setFocus() > } > ]]> > </mx:Script> > <mx:TextInput x="137" y="77" id="one" tabIndex="1" > tabEnabled="true"/> > <mx:TextInput x="137" y="147" id="two" tabIndex="2" > tabEnabled="true"/> > <mx:TextInput x="137" y="237" id="three" tabIndex="3" > focusOut="goto()" tabEnabled="true"/> > > </mx:Application> >

