| 種 類 |
メソッド | - | ||||
|---|---|---|---|---|---|---|
| バージョン |
|
|||||
| 書 式 | Selection.getCaretIndex() |
|---|---|
| 解 説 | Selection.getCaretIndex()は現在フォーカスされているテキストボックスにある挿入ポイントの位置を返します。挿入ポイントがない場合は-1になります。 |
| コード | _root.myText = Selection.getCaretIndex(); |
| ■サンプルスクリプトをダウンロードする >>sample.zip ■サンプルスクリプトを実行する >>sample |