■テキストフィールドのキャレット位置を調べる
■書式

Selection.getCaretIndex()
■説明
getCaretIndex()は現在のキャレット(文字の挿入ポイント)の位置を返します。一番先頭の位置は0になります。テキストボックスにフォーカスしていない場合(文字が入力可能になっていない場合)は-1を返します。
■文例
insPoint = Selection.getCaretIndex()
テキストボックスのキャレットの位置を変数insPointに入れる
onClipEvent (enterFrame) {
_root.cPoint.text = Selection.getCaretIndex();
}
■書籍のご案内