Use this code to set the focus on a text field instance in your Flash:
myTextField.stage.focus = myTextField;
Note: This only works once the user has already clicked on the swf. For example, if you had a button in your Flash that said “click here to fill out a form”, and then when they clicked that button you wanted to focus on a field, this solution would work well.

