原文(英語): How to make an input text field
対象となるバージョン: Flash Lite: 1.1, 2.x
このコードを実行すると、入力テキストフィールドに数字のみ入力可能にできます。
fscommand2("SetInputTextType", "myText", "Numeric");
テキストフィールドを選択すると、プロパティタブ中で最大文字数を入力することができます。
下記のように記述することで、フォーカス矩形の色を変更することができます(デフォルトは黄色)。
fscommand2("SetFocusRectColor", 255, 153, 0); //Orange
下記記述で、フォーカス矩形の色を再設定できます。
fscommand2("SetFocusRectColor", <red>, <green>, <blue>);
例題のソースコードは、下記サイトからダウンロードできます。
入力テキスト 240*320 (swf + fla)
No related wiki articles found