开发者

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

开发者 https://www.devze.com 2022-12-13 20:54 出处:网络
What is an easiest way to place cursor (focus?) into a Input TextField receiving user input after an event?Focus Manager classes have alw开发者_JAVA百科ays seems very confusing to me.Good news for you

What is an easiest way to place cursor (focus?) into a Input TextField receiving user input after an event? Focus Manager classes have alw开发者_JAVA百科ays seems very confusing to me.


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
0

精彩评论

暂无评论...
验证码 换一张
取 消