2 つの TextInput を持つ Form で構成されるログイン フォームがあります。ユーザーが入力したときにフォームまたはユーザー名TextInput フィールドが自動的に選択されるようにしたいので、ユーザー名を入力する前に TextInput フィールドを左クリックする必要はありません。どうすればこれを達成できるか知っている人はいますか?
<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>