Flashの超基本的な質問はここでしろ! part37at SWF
Flashの超基本的な質問はここでしろ! part37 - 暇つぶし2ch215:Now_loading...774KB
08/03/06 21:46:14 yzsQhUPy
>>214
ActionScript 2.0 リファレンスガイド
ActionScript クラス > TextFormat > color (TextFormat.color プロパティ)

color (TextFormat.color プロパティ)
public color : Number

テキストの色を示します。たとえば、0xFF0000 は赤、0x00FF00 は緑など、3 つの 8 ビットの RGB コンポーネントを示す数値です。

使用できるバージョン : ActionScript 1.0、Flash Player 6


次の例では、テキストフィールドを作成し、テキストの色を赤に設定します。

var my_fmt:TextFormat = new TextFormat();
my_fmt.blockIndent = 20;
my_fmt.color = 0xFF0000; // hex value for red

this.createTextField("my_txt", 1, 100, 100, 300, 100);
my_txt.multiline = true;
my_txt.wordWrap = true;
my_txt.border = true;
my_txt.text = "this is my first test field object text";
my_txt.setTextFormat(my_fmt);



次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch