views:

620

answers:

1

What easiest way to place cursor (focus?) into an textfield input box for receiving user input after an event? Focus Manager classes have always seems very confusing to me.

+2  A: 

Good news for you: in as3 there is no Focus Manager, just use the stage:

stage.focus = textField;
textField.setSelection(textField.text.length,textField.text.length); //place caret at end of text
danii
Just as an aside (not a criticism of your answer which is good), there is a FocusManager class I think, but it's for components and not appropriate here. I think that confuses people if they're browsing the AS3 language reference.
alecmce