■ テキストフィールド内のキャレット位置を取得するには

//ムービークリップアクション
onClipEvent(enterFrame) {
_root.caretPos = Selection.getCaretIndex();
}