TextField() Set caret position
Asked Answered
M

1

8

How to set the caret position, there is only

this.caretIndex (READ)

Maldon answered 11/2, 2009 at 14:20 Comment(0)
E
17

use setSelection(beginIndex:int, endIndex:int):void

eg

this.textField.setSelection(20, 20)
Eisinger answered 11/2, 2009 at 14:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.