getCaretIndex()

種  類
メソッド -
バージョン
FLASH
5
LiveMotion
2

書  式
Selection.getCaretIndex()

解  説
Selection.getCaretIndex()は現在フォーカスされているテキストボックスにある挿入ポイントの位置を返します。挿入ポイントがない場合は-1になります。


コード
_root.myText = Selection.
getCaretIndex();


■サンプルスクリプトをダウンロードする >>sample.zip
■サンプルスクリプトを実行する >>sample