If username is the id given to the TextInput, try this code in the show event handler of the Form
private function formShowHandler():void
Sorry but it is not working... I already tried this and i even tried again... It makes the username textinput surrounded by a blue square but thats it... The cursor isn't blinking inside !
Funny thing...In any other GUI SDK, this trivial thing would be well documented and it would take make 5 secondes to solve !
If you set that function to run at application initialization it should work with no problems - less than 5 secs too!
It's a custom component... I can only trigger that using creationComplete...It's a Panel custom component.
So ?... What's the trick ?... (That's assuming there is one !)