Apache Flex 4.8.0

この記事は公開されてから1年以上経過しています。情報が古い可能性がありますので、ご注意ください。

Apache Flex 4.8.0

Adobe FlexがApacheに寄贈されて、ApacheライセンスでのFlex SDKとして初のリリースです。
Adobe Flex SDK 4.6.0と互換があるようにデザインされています。

http://incubator.apache.org/flex/

ダウンロード

Download Apache Flex 4.8.0 (binaries)の中からダウンロードします。
http://incubator.apache.org/flex/download.html

また、Apache Flex 4.8.0には、OSMFやTLFなどが入っていませんので依存関係にあるものは別途ダウンロードが必要です。
これについては、後述するインストールバッチがダウンロードしてインストールしてくれます。


インストール

ダウンロードしたファイルを展開しただけではFlashBuilderに入れてもエラーの嵐です。
インストールバッチを使って、インストールを行います。

バッチの場所
apache-flex-sdk-4.8.0-incubating-bin\ide\flashbuilder\makeApacheFlexForFlashBuilder.bat
バッチの使い方
Usage: makeApacheFlexForFlashBuilder.bat [new directory for Apache Flex SDK for Adobe Flash Builder]
なお、バッチの実行ログは最後に追加しています。

インストール for Flash Builder 4.6

インストールバッチが正常に終了したら依存関係を解決してインストールされていると思います。
しかし、FlashBuilder4.6利用するためには次の2つを行います。

1. 設定ファイルの修正
4.8.0 HOME DIR\frameworks\flex-config.xml を開いてください。
そのファイルの{playerglobalHome}をlibs/playerに置換してください。二か所あります。
これはplayerglobalHomeをFlash Builder 4.6では解決できないから必要です。

2. playerglobal.swcの設置
上記で指定したlibs/playerを4.8.0 HOME DIR\frameworks\以下に作成してださい。
その中に11.1/playerglobal.swcという形式で配置してください。

利用方法

FlashBuilder 4.6の設定ダイアログの[Flash Builder] > [インストールされているFlexSDK]より設定します。

インストールバッチの実行ログ

バッチの途中にOSMFやTLFやAdobeFlex4.6のダウンロードとライセンスについて読んだか質問されます。

> makeApacheFlexForFlashBuilder.bat "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0"
Copying the Apache Flex SDK from ..\.. to "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks
\4.8.0"
4597 個のファイルをコピーしました
Buildfile: C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\frameworks\downloads.xml

swfobject-check:

swfobject-download:
    [mkdir] Created dir: C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\in
      [get] Getting: http://swfobject.googlecode.com/files/swfobject_2_2.zip
      [get] To: C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\in\swfobject_2_2.zip

    [unzip] Expanding: C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\in\swfobject_
2_2.zip into C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\templates

swfobject-fabridge-download:
    [mkdir] Created dir: C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\frameworks\
javascript\FABridge\samples\fabridge\swfobject
     [copy] Copying 1 file to C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\framew
orks\javascript\FABridge\samples\fabridge\swfobject

textLayout-check:

textLayout-download:

ask-tlf:
     [echo] The Adobe Text Layout Framework (TLF) used by the Spark text components
     [echo] is licensed under the Mozilla Public License Version 1.1.

echo-mpl1.1-license:
     [echo] Mozilla Public License Version 1.1:
     [echo]
     [echo] The contents of the file(s) are subject to the Mozilla Public License Version 1.1.

     [echo] You may not use the file(s) except in compliance with the License.
     [echo] You may obtain a copy of the License here:
     [echo]     http://www.mozilla.org/MPL/.
     [echo] By downloading, modifying, distributing, using and/or accessing the file(s),

     [echo] you agree to the terms and conditions of the applicable license agreement.
    [input]
    [input] I have read the MPL1.1 license information above? ([y])
y

download-tlf-zip:
      [get] Getting: http://sourceforge.net/projects/tlf.adobe/files/2.0/232/textLayout_build.zip/do
wnload
      [get] To: C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\in\textLayout_build.
zip
      [get] http://sourceforge.net/projects/tlf.adobe/files/2.0/232/textLayout_build.zip/download mo
ved to http://downloads.sourceforge.net/project/tlf.adobe/2.0/232/textLayout_build.zip?r=&ts=1343108
240&use_mirror=jaist
      [get] http://downloads.sourceforge.net/project/tlf.adobe/2.0/232/textLayout_build.zip?r=&ts=13
43108240&use_mirror=jaist moved to http://jaist.dl.sourceforge.net/project/tlf.adobe/2.0/232/textLay
out_build.zip
    [unzip] Expanding: C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\in\textLayout
_build.zip into C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\frameworks

osmf-check:

osmf-download:

ask-osmf:
     [echo] The Open Source Media Framework (OSMF) used by the video components
     [echo] is licensed under the Mozilla Public License Version 1.1.

echo-mpl1.1-license:
     [echo] Mozilla Public License Version 1.1:
     [echo]
     [echo] The contents of the file(s) are subject to the Mozilla Public License Version 1.1.

     [echo] You may not use the file(s) except in compliance with the License.
     [echo] You may obtain a copy of the License here:
     [echo]     http://www.mozilla.org/MPL/.
     [echo] By downloading, modifying, distributing, using and/or accessing the file(s),

     [echo] you agree to the terms and conditions of the applicable license agreement.
    [input]
    [input] I have read the MPL1.1 license information above? ([y])
y

download-osmf-zip:
      [get] Getting: http://sourceforge.net/projects/osmf.adobe/files/OSMF%201.0%20%28final%20source
%2C%20ASDocs%2C%20PDF%20guides%2C%20and%20release%20notes%29/OSMF_1.0.zip/download
      [get] To: C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\in\OSMF_1.0.zip
      [get] http://sourceforge.net/projects/osmf.adobe/files/OSMF%201.0%20%28final%20source%2C%20ASD
ocs%2C%20PDF%20guides%2C%20and%20release%20notes%29/OSMF_1.0.zip/download moved to http://downloads.
sourceforge.net/project/osmf.adobe/OSMF%201.0%20%28final%20source%2C%20ASDocs%2C%20PDF%20guides%2C%2
0and%20release%20notes%29/OSMF_1.0.zip?r=&ts=1343108247&use_mirror=jaist
      [get] http://downloads.sourceforge.net/project/osmf.adobe/OSMF%201.0%20%28final%20source%2C%20
ASDocs%2C%20PDF%20guides%2C%20and%20release%20notes%29/OSMF_1.0.zip?r=&ts=1343108247&use_mirror=jais
t moved to http://jaist.dl.sourceforge.net/project/osmf.adobe/OSMF%201.0%20%28final%20source%2C%20AS
Docs%2C%20PDF%20guides%2C%20and%20release%20notes%29/OSMF_1.0.zip
    [unzip] Expanding: C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\in\OSMF_1.0.z
ip into C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\in
    [unzip] Expanding: C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\in\osmf_sourc
e_v1-0.zip into C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\frameworks\libs

blazeds-jar-check:

ask-blazeds:
     [echo] Apache Flex can optionally integrate with Adobe BlazeDS.
     [echo] This feature requires flex-messaging-common.jar from the Adobe Flex SDK.
     [echo] The Adobe SDK license agreement for Adobe Flex 4.6 applies to this jar.
     [echo] This license is not compatible with the Apache v2 license.

echo-adobe-flex-sdk-license:
     [echo] Adobe Flex SDK License Agreement:
     [echo]
     [echo] All files contained in this Adobe Flex SDK download are subject to and governed by the

     [echo] Adobe Flex SDK License Agreement specified here:
     [echo]     http://www.adobe.com/products/eulas/pdfs/adobe_flex_software_development_kit-combine
d-20110916_0930.pdf,
     [echo] By downloading, modifying, distributing, using and/or accessing any files in this Adobe
Flex SDK,
     [echo] you agree to the terms and conditions of the applicable end user license agreement.

     [echo]
     [echo] In addition to the Adobe license terms, you also agree to be bound by the third-party te
rms specified here:
     [echo]     http://www.adobe.com/products/eula/third_party/.
     [echo] Adobe recommends that you review these third-party terms.
    [input]
    [input] Do you want to install this jar from the Adobe Flex SDK? (y, [n])
y

get-blazeds-jar:

get-adobe-flex-sdk:

download-adobe-flex-sdk:
      [get] Getting: http://fpdownload.adobe.com/pub/flex/sdk/builds/flex4.6/flex_sdk_4.6.0.23201B.z
ip
      [get] To: C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\in\flex_sdk_4.6.0.23
201B.zip
    [unzip] Expanding: C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\in\flex_sdk_4
.6.0.23201B.zip into C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\in\adobe_flex_s
dk_4.6
     [copy] Copying 1 file to C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\lib\ex
ternal\optional
     [copy] Copying C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\in\adobe_flex_sd
k_4.6\lib\flex-messaging-common.jar to C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8
.0\lib\external\optional\flex-messaging-common.jar
     [copy] Copying 1 file to C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\lib\ex
ternal\optional
     [copy] Copying C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\in\adobe_flex_sd
k_4.6\license-adobesdk.htm to C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\lib\ex
ternal\optional\flex-messaging-common-LICENSE.htm

blazeds-jar:

font-jars-check:

ask-font:
     [echo] Apache Flex can optionally integrate with Adobe's embedded font support.
     [echo] This feature requires a few font jars from the Adobe Flex SDK.
     [echo] The Adobe SDK license agreement for Adobe Flex 4.6 applies to these jars.
     [echo] This license is not compatible with the Apache v2 license.

echo-adobe-flex-sdk-license:
     [echo] Adobe Flex SDK License Agreement:
     [echo]
     [echo] All files contained in this Adobe Flex SDK download are subject to and governed by the

     [echo] Adobe Flex SDK License Agreement specified here:
     [echo]     http://www.adobe.com/products/eulas/pdfs/adobe_flex_software_development_kit-combine
d-20110916_0930.pdf,
     [echo] By downloading, modifying, distributing, using and/or accessing any files in this Adobe
Flex SDK,
     [echo] you agree to the terms and conditions of the applicable end user license agreement.

     [echo]
     [echo] In addition to the Adobe license terms, you also agree to be bound by the third-party te
rms specified here:
     [echo]     http://www.adobe.com/products/eula/third_party/.
     [echo] Adobe recommends that you review these third-party terms.
    [input]
    [input] Do you want to install these jars from the Adobe Flex SDK? (y, [n])
y

get-font-jars:

get-adobe-flex-sdk:
     [copy] Copying 4 files to C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\lib\e
xternal\optional
     [copy] Copying C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\in\adobe_flex_sd
k_4.6\lib\afe.jar to C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\lib\external\op
tional\afe.jar
     [copy] Copying C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\in\adobe_flex_sd
k_4.6\lib\aglj40.jar to C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\lib\external
\optional\aglj40.jar
     [copy] Copying C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\in\adobe_flex_sd
k_4.6\lib\flex-fontkit.jar to C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\lib\ex
ternal\optional\flex-fontkit.jar
     [copy] Copying C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\in\adobe_flex_sd
k_4.6\lib\rideau.jar to C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\lib\external
\optional\rideau.jar
     [copy] Copying 1 file to C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\lib\ex
ternal\optional
     [copy] Copying C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\in\adobe_flex_sd
k_4.6\license-adobesdk.htm to C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\lib\ex
ternal\optional\flex-fontkit-LICENSE.htm
     [copy] Copying 1 file to C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\lib\ex
ternal\optional
     [copy] Copying C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\in\adobe_flex_sd
k_4.6\license-adobesdk.htm to C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\lib\ex
ternal\optional\afe-LICENSE.htm
     [copy] Copying 1 file to C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\lib\ex
ternal\optional
     [copy] Copying C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\in\adobe_flex_sd
k_4.6\license-adobesdk.htm to C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\lib\ex
ternal\optional\aglj40-LICENSE.htm
     [copy] Copying 1 file to C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\lib\ex
ternal\optional
     [copy] Copying C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\in\adobe_flex_sd
k_4.6\license-adobesdk.htm to C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\lib\ex
ternal\optional\rideau.jar-LICENSE.htm

font-jars:

clean-adobe-flex-sdk:
   [delete] Deleting directory C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.8.0\in\ad
obe_flex_sdk_4.6

optional-downloads:

main:
     [echo] Use thirdparty-clean or super-clean to remove these.

BUILD SUCCESSFUL
Total time: 2 minutes 2 seconds