Placement of the cursor (flashing carriage) at the TextField input for user input in AS3.

What is the easiest way to place the cursor (focus?) In an Input TextField that receives user input after an event? The Focus Manager classes always seem very confusing to me.

+6
actionscript actionscript-3
source share
1 answer

Good news for you: there is no focus manager in as3, just use the scene:

 stage.focus = textField; textField.setSelection(textField.text.length,textField.text.length); //place caret at end of text 
+4
source share

All Articles