再インストール
インストール
Adobe® Flex® 4.5 SDKを展開して適当なフォルダにコピーします(シンボリックリンクでもOK)。リリースノートによれば、つぎのものがインストールされます。
変更した箇所
application.xml(アプリケーションデスクリプタ)
ビルドをとりあえず通すための変更点*1。リリースノートに書かれている内容です。
<application xmlns="http://ns.adobe.com/air/application/2.6"> ..... <versionNumber>0.0.0</versionNumber>
旧版 | Flex4.5 | 変更忘れ時のエラーメッセージ |
---|---|---|
...application/2.0" | ...application/2.6" | error while loading initial content |
invalid application descriptor: versionNumber must have a non-empty value. |
変更を忘れると上記のエラーメッセージが実行時に表示されるので、すみやかに変更します。
ANT用build.xml(configname)
confignameの説明が見つからないので、要らないのかと思いきや、ビルドエラーになりました*2。flextasksのビルドオプションとしてつけたままにします。
flextasksに関係するbuild.xmlの一部を抜粋。
<property environment="env"/> <property name="FLEX_HOME" value="${env.FLEX_HOME}"/> <taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar"/> <macrodef name="compile-macro"> <attribute name="debug"/> <attribute name="ifile"/> <attribute name="ofile"/> <sequential> <mxmlc configname="air" file="@{ifile}" output="@{ofile}" debug="@{debug}" as3="true" incremental="true" allow-source-path-overlap="true"> <source-path path-element="${src.dir}"/> <source-path path-element="${framework.dir}"/> </mxmlc> </sequential> </macrodef>