タグ

2010年10月6日のブックマーク (2件)

  • ActionScript 3.0 の条件付きコンパイル - akihiro kamijo

    AS3 では、コンパイル時に条件を指定してコンパイル結果を変えることができます。例えば、コードの一部を、条件に応じてコンパイル対象から外したり、ターゲットごとにクラス定義を切り替えたり、という使い方が可能です。 条件を指定するコンパイル定数は、下の形式で記述します。 CONFIG::定数名 CONFIG は条件を指定する定数用の名前空間です。定数名の箇所は予約語を除き任意の名前を使用できます。 CONFIG 名前空間は、オーサリング環境がデフォルトで使用します。名前が被るのを避けるために、独自の名前空間を宣言したければ、以下のようなコードを AS のコード内に記述します。 config namespace MY_CONFIG; // MY_CONFIG は好きな名前に置き換えて これで、以下のような定数を指定できるようになります。 MY_CONFIG::debug コンパイル定数が tru

  • FlashTracer 2.1.0 - Alessandro Crugnola - sephiroth.it

    Thanks to Chad Upton who sent me some suggestions on how to improve FlashTracer I recently updated this extension adding some new features beside those already installed. Now it is possible to define rules ( using the options panel ), which allow you to style the output messages (defining font-weight, font-style, color and text underline); they can work also like a filter to discard all the messag

    FlashTracer 2.1.0 - Alessandro Crugnola - sephiroth.it