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

Line ending issue with Mercurial or Visual Studio -

python - Received unregistered task using Celery with Django -

php - Retrieving data submitted with Yii's CActiveForm -