8

How to set the caret position, there is only

this.caretIndex (READ)

ketan
  • 19,129
  • 42
  • 60
  • 98
Tom
  • 6,725
  • 24
  • 95
  • 159

1 Answers1

17

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

eg

this.textField.setSelection(20, 20)
Josh Tynjala
  • 5,235
  • 3
  • 23
  • 25
James Hay
  • 12,580
  • 8
  • 44
  • 67