| 1 |
BetweenAS3 Build Documentation |
|---|
| 2 |
======================================== |
|---|
| 3 |
|
|---|
| 4 |
How to craete a swc file |
|---|
| 5 |
-------------------- |
|---|
| 6 |
|
|---|
| 7 |
1. Install Flex SDK (3.3 or later) and Apache ANT |
|---|
| 8 |
|
|---|
| 9 |
Flex SDK can be get at: |
|---|
| 10 |
http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3 |
|---|
| 11 |
|
|---|
| 12 |
Download a ZIP and unzip it to somewhere you like. |
|---|
| 13 |
|
|---|
| 14 |
Note: An offical binary is created by the Adobe Flex SDK 3.3.0.4589 |
|---|
| 15 |
|
|---|
| 16 |
Apache ANT can be get at: |
|---|
| 17 |
http://ant.apache.org/bindownload.cgi |
|---|
| 18 |
|
|---|
| 19 |
Download a binary distribution and install it. |
|---|
| 20 |
|
|---|
| 21 |
Note: If you're using Mac OSX 10.5, it was installed by default. |
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
2. Configure FLEX_HOME variable |
|---|
| 25 |
|
|---|
| 26 |
Open a build.properties in the BetweenAS3 project directory, |
|---|
| 27 |
and edit FLEX_HOME variable to indicates a path to your Flex SDK that |
|---|
| 28 |
was installed at step1. |
|---|
| 29 |
|
|---|
| 30 |
Like: |
|---|
| 31 |
|
|---|
| 32 |
FLEX_HOME=/Users/yossy/DataFiles/Libraries/flex_sdk_3.3.0.4589/ |
|---|
| 33 |
|
|---|
| 34 |
to |
|---|
| 35 |
|
|---|
| 36 |
FLEX_HOME=/path/to/flex_sdk/ |
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 |
3. Run build command |
|---|
| 40 |
|
|---|
| 41 |
Open your console, change the current directory to the BetweenAS3 project |
|---|
| 42 |
directory, and execute following ANT command: |
|---|
| 43 |
|
|---|
| 44 |
$ ant -lib /path/to/flex_sdk/ant/lib/flexTasks.jar swc.fp10 |
|---|
| 45 |
|
|---|
| 46 |
Note: /path/to/flex_sdk/ is a path to your Flex SDK, same as FLEX_HOME. |
|---|
| 47 |
|
|---|
| 48 |
If you want a SWC for FlashPlayer9, execute following command instead: |
|---|
| 49 |
|
|---|
| 50 |
$ ant -lib /path/to/flex_sdk/ant/lib/flexTasks.jar swc.fp9 |
|---|
| 51 |
|
|---|
| 52 |
A SWC file will be created at bin/BetweenAS3-<version>-<fp9|fp10>.swc |
|---|