特定のバージョン向けのSWFを作る
Flex SDKやAIR SDKで特定のバージョン向けのSWFを作るには-swf-versionでバージョンを指定します。
- mxmlc や amxmlc のオプション -swf-version=<バージョン> をつけてコンパイルします
- AIR を adl で実行するときに指定する XMLの applicationタグに対応するAIRバージョンを指定します
| swf-version |
Flash version |
AIR version |
| 9 |
9.x |
- |
| 10 |
10.0 |
1.5 |
| 10 |
10.1 |
2.0 |
| 11 |
10.2 |
2.6 |
| 12 |
10.3 |
2.7 |
| 13 |
11.0 |
3.0 |
| 14 |
11.1 |
3.1 |
| 15 |
11.2 |
3.2 |
| 16 |
11.3 |
3.3 |
| 17 |
11.4 |
3.4 |
あるバージョン以上の swf-version を指定するには対応した Flex SDK や AIR SDKが必要になります
例1)
mxmlc -swf-version=11 Target.mxml
例2)
amxmlc -swf-version=11 -debug -default-size 480 480 Sample.as
adl application.xml
cat application.xml
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://ns.adobe.com/air/application/2.7">
<id>Sample</id>
<versionNumber>1.0</versionNumber>
<filename>Sample</filename>
<initialWindow>
<content>Sample.swf</content>
<width>480</width>
<height>480</height>
</initialWindow>
</application>
最終更新:2012年08月13日 04:29