Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I would definitely go with the ant tasks that are included with Flex, they make your build script so much cleaner. Here is a sample build script that will compile and then run your flex project</p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;project name="flexapptest" default="buildAndRun" basedir="."&gt; &lt;!-- make sure this jar file is in the ant lib directory classpath="${ANT_HOME}/lib/flexTasks.jar" --&gt; &lt;taskdef resource="flexTasks.tasks" /&gt; &lt;property name="appname" value="flexapptest"/&gt; &lt;property name="appname_main" value="Flexapptest"/&gt; &lt;property name="FLEX_HOME" value="/Applications/flex_sdk_3"/&gt; &lt;property name="APP_ROOT" value="."/&gt; &lt;property name="swfOut" value="dist/${appname}.swf" /&gt; &lt;!-- point this to your local copy of the flash player --&gt; &lt;property name="flash.player" location="/Applications/Adobe Flash CS3/Players/Flash Player.app" /&gt; &lt;target name="compile"&gt; &lt;mxmlc file="${APP_ROOT}/src/${appname_main}.mxml" output="${APP_ROOT}/${swfOut}" keep-generated-actionscript="true"&gt; &lt;default-size width="800" height="600" /&gt; &lt;load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/&gt; &lt;source-path path-element="${FLEX_HOME}/frameworks"/&gt; &lt;compiler.library-path dir="${APP_ROOT}/libs" append="true"&gt; &lt;include name="*.swc" /&gt; &lt;/compiler.library-path&gt; &lt;/mxmlc&gt; &lt;/target&gt; &lt;target name="buildAndRun" depends="compile"&gt; &lt;exec executable="open"&gt; &lt;arg line="-a '${flash.player}'"/&gt; &lt;arg line="${APP_ROOT}/${swfOut}" /&gt; &lt;/exec&gt; &lt;/target&gt; &lt;target name="clean"&gt; &lt;delete dir="${APP_ROOT}/src/generated"/&gt; &lt;delete file="${APP_ROOT}/${swfOut}"/&gt; &lt;/target&gt; &lt;/project&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload