actionscript 3 - How to get caretIndex from a TextArea as TextField -
i saw lot of examples of using .caretindex index of cursor inside textfield text, i'm using textarea , there no such property, selection index. how cursor index position textarea?
edit: ok, did test , selectionbeginindex returning value. "right" use it, or there specific way?
you can use selectionbeginindex
according adobe's documentation:
if there no selection, value set position of caret.
Comments
Post a Comment