Flex で ウェブアプリ開発日記1

Adobe ApolloAdobe AIR になり, Flex 3 SDK もリリースされました.
Mac OSX 向けメモ.

Adobe AIR とは

HTML, JavaScript, Flash をベースにしたデスクトップアプリケーション実行環境.
デスクトップアプリケーション用の API が拡張されており, ローカルファイルへのアクセスなどが行える.
もちろんインターネット上の Web API にも接続可能.

Flex 3 SDK セットアップ

Adobe Flash Technologies | flash ActionScript and component - Adobe Labs から, Flex 3 SDK Beta 1 をダウンロードします.
適当な場所にアーカイブを配置し, 解凍.
ここでは $HOME/flex へ展開します.

% unzip flex3sdk_b1_061107.zip 

flex/bin へ PATH を通します.

% export PATH=$PATH:$HOME/flex/bin

テストとしてコンパイラを起動してみます.

% mxmlc -help
Adobe Flex Compiler (mxmlc)
Version 3.0 build 172357
Copyright (c) 2004-2006 Adobe Systems, Inc. All rights reserved.

-help [keyword] [...]
    For information on command line syntax and descriptions of
    configuration variables, specify a search string, or one of the
    following special keywords:
       syntax   - describe the general syntax of the command line
       list     - show a list of all basic configuration variables
       advanced - also match advanced configuration variables
       aliases  - sort using the short alias for the variable
       details  - always display the full details for each item
    Any other help keyword provided is used to match a full or partial
    configuration variable, alias, or text to search for in the
    description of the configuration variable.
    
    For example, '-help advanced aliases foo' would show all
    configuration options (both basic and advanced) containing the text
    'foo', sorted by alias name.
    
    In the description of individual configuration variables, required
    values are marked with angle brackets, and optional values are marked
    with square brackets.  The notation [...] is used to indicate that
    the values are a list of arbitrary length.

コマンドの確認

上記の設定で以下のコマンドか追加されたはずです.

mxmlc
通常の Flashコンパイル.
amxmlc
AIR 用に拡張された API を含めたコンパイル.
adt
AIR パッケージの作成.