Ant script for building Flash application

This is the ant script that i use for compiling my Flex application into .swf file


<?xml version="1.0" encoding="utf-8"?>
<project name="My App Builder" basedir=".">

<property name="FLEX_HOME" value="C:/software/AdobeFlashBuilder/sdks/4.0.0"/>
<property name="FLEX_MXML_PATH" value="C:/flex/HelloFlex/src/JSONDataExchange.mxml"/>
<property name="FLEX_SWF_PATH" value="C:/flex/HelloFlexPortlet/WebContent/HelloFlex.swf"/>

<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar"/>
<target name="main">
<mxmlc file="${FLEX_MXML_PATH}" keep-generated-actionscript="true" output="${FLEX_SWF_PATH}">
<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
<source-path path-element="${FLEX_HOME}/frameworks"/>
<compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
<include name="libs" />
<include name="../bundles/{locale}" />
</compiler.library-path>
</mxmlc>
</target>
</project>


You need to have either the Adobe Flex builder or the Flex SDK installed on your machine. This script requires following three variables


  1. FLEX_HOME Location where FLEX SDK is installed on your machine. If you have Flex builder 4.0, it has both SDK 4.0 and SDK 3.5 and you can point to either of them

  2. FLEX_MXML_PATHFully qualified path of the .mxml file that has your Flex application

  3. FLEX_SWF_PATHFully qualified path of the .swf file that you want to generate. In my case i am generating the .swf file inside my Web application so that i can package it in the .war file

3 comments:

srjwebsolutions said...


We are leading responsive website designing and development company in Noida.
We are offering mobile friendly responsive website designing, website development, e-commerce website, seo service and sem services in Noida.

Responsive Website Designing Company in Noida
Website Designing Company in Noida
SEO Services in Noida
SMO Services in Noida

Vikas Chaudhary said...

Battery Mantra is Authorized exide car battery dealer in Noida and Greater Noida. We are providing our service in Indirapuram, Delhi, Ashok Nagar.

Exide Battery Dealer in Noida
Battery Dealer in Noida
Authorized Battery Dealer in Noida
Car Battery Dealer in Noida
Car Battery Dealer
Exide Battery Dealer

EG MEDI said...

Egmedi.com is online medical store pharmacy in laxmi nagar Delhi. You can Order prescription/OTC medicines online.
Cash on Delivery available. Free Home Delivery


Online Pharmacy in Delhi
Buy Online medicine in Delhi
Online Pharmacy in laxmi nagar
Buy Online medicine in laxmi nagar
Onine Medical Store in Delhi
Online Medical store in laxmi nagar
Online medicine store in delhi
online medicine store in laxmi nagar
Purchase Medicine Online
Online Pharmacy India
Online Medical Store