■フォーカスを制御する
■書式

Selection.setFocus(★)

Selection.getFocus()
★・・・フォーカスするテキストボックス
■説明
setFocus()は指定したテキストボックスにフォーカスします。getFocus()は現在フォーカスしているテキストボックスへのパスを返します。どのテキストボックスにもフォーカスされていない場合はnullを返します。
■文例
Selection.setFocus("_root.myBox")
テキストボックス名myBoxにフォーカスする
fname = Selection.getFocus()
現在フォーカスしているテキストボックスへのパスを変数fnameに入れる
onClipEvent (mouseDown) {
Selection.setFocus("_root.textBox2");
_root.textBox2.text = Selection.getFocus();
}
■書籍のご案内