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
2009-12-16 07:43:09
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
2009-12-16 13:47:41