Tom
Tom

Reputation: 6707

TextField() Set caret position

How to set the caret position, there is only

this.caretIndex (READ)

Upvotes: 8

Views: 11803

Answers (1)

James Hay
James Hay

Reputation: 12700

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

eg

this.textField.setSelection(20, 20)

Upvotes: 17

Related Questions