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

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -