I have a login form consisting of a Form with two TextInput's. I want the Form, or the username TextInput field to be automatically selected when the user enters, so he does not have to left click the TextInput field before entering his username. Do anyone know how i can achieve this?
<mx:Form x="223" y="186" defaultButton="{submitButton}"> <mx:FormItem label="Username"> <mx:TextInput id="userName"/> </mx:FormItem> <mx:FormItem label="Password"> <mx:TextInput id="password" displayAsPassword="true"/> </mx:FormItem> <mx:FormItem> <mx:Button id="submitButton" label="Login" click="submitLogin()"/> </mx:FormItem> </mx:Form>