开发者

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 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜