Skip to content

Instantly share code, notes, and snippets.

@tpryan
Created December 9, 2010 22:19
Show Gist options
  • Save tpryan/735429 to your computer and use it in GitHub Desktop.
Save tpryan/735429 to your computer and use it in GitHub Desktop.
Fragment of an ANT script to compile Flex Hero for devices.
<target name="compile">
<echo message="Compiling swf"/>
<mxmlc file="${full path to the project File}" output="${Name for the compiled swf}">
<load-config filename="${FLEX_HOME}/frameworks/airmobile-config.xml"/>
<source-path path-element="${FLEX_HOME}/frameworks"/>
<static-link-runtime-shared-libraries />
<!-- Include this piece to pull in the Flex Framework or it won't compile. -->
<compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
<include name="libs/*" />
</compiler.library-path>
</mxmlc>
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment