Hmm. Never realized you can't change focus during focusOut. Try this: <mx:TextInput id="firstInput" focusOut="callLater(firstInput.setFocus)"/> <mx:TextInput id="secondInput" />
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of pande2901 Sent: Wednesday, September 26, 2007 4:07 AM To: [email protected] Subject: [flexcoders] Problems with setFocus() I have the following code as my MXML code <mx:TextInput id="firstInput" focusOut="validateField(event)"/> <mx:TextInput id="secondInput" /> The script getting called is given below: private function validateField(event:Event):void{ event.target.setFocus(); } The problem is that even after setting the focus back to the first element the control is not coming back to the said control. Please let me know if anyone else has found a solution to this problem. Regards,

