Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Placing cursor (blinking caret) into input TextField for user input in AS3.

What is an easiest way to place cursor (focus?) into a Input TextField receiving user input after an event? Focus Manager classes have always seems very confusing to me.

like image 934
mike Avatar asked Dec 15 '09 01:12

mike


1 Answers

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
like image 173
danii Avatar answered Sep 23 '22 06:09

danii