Skip to main content

Java Ant target to compile Flex 3 | 4 AS3/MXML source code [ gnu/Linux - windows compatible ]

Java Ant target to compile Flex 3 | 4 AS3/MXML source code [ gnu/Linux - windows compatible ]

The below Ant target may be ran unmodified for both gnu/Linux and windows environments.

[ pull down a complete working Flex 4 application using the 'MXMLC' Java Ant target ]

Some of the dependent Java Apache Ant 'property values' necessary for 'MXMLC' 'compiling' Flex 4 source code (ActionScript 3 - MXML).

#Sun, 24 Apr 2011 22:51:20 -0400
#Sun Apr 17 09:43:13 EDT 2011

# also successfully tested with 'tomcat 6.x'
#apache.tomcat7=/Program Files/Apache Software Foundation/Apache Tomcat 7.0.11


    <target name="_init" description="set all properties">
<echo>- target - _init</echo>
<echo>- read and set properties for build</echo>

<property file=""/>

<property name="appName" value="customSpriteControl"/>

<property name="build" value="${basedir}/build"/>
<property name="merge" value="${basedir}/merge"/>
<property name="dist" value="${basedir}/dist"/>


<target name="_mxmlc" depends="_makeBuildFolder, _addAntTokensToSourceCode"
description="compile action script files into swf files">
<echo>- target - mxmlc</echo>
<echo>- generate swf files from action script files</echo>

<java jar="${flex4.sdk}/lib/mxmlc.jar" fork="true" failonerror="true">
<arg value="-debug=true"/>
<arg value="+flexlib=${flex4.sdk}/frameworks"/>
<arg value="-load-config=${flex4.sdk}/frameworks/flex-config.xml"/>
<arg value="-compiler.source-path=${build}/flex/src"/>
<arg value="-static-rsls=true"/>


<arg line='-compiler.context-root "/${appName}"'/>

<arg value="-compiler.include-libraries=${build}/flex/lib/MonsterDebugger.swc"/>

<arg value="${build}/flex/src/customSpriteControl.mxml"/>

<arg line='-o "${build}/flex/${appName}.swf"'/>


How the 'MXMLC' Java Apache Ant target is organized in the IntelliJ IDE.

From Linux Clicks...

An example Flex 4 application compiled by using the above Java Apache Ant 'MXMLC' target.
The source code to the exampled application is available at:

From Linux Clicks...


Popular posts from this blog

clonezilla - creating a wifi ad-hoc hotspot and running a ssh server

Here are some notes on connecting to a wifi-hotspot from a running clonezilla

[ target machine to save a backup hard-disk clone/image ]
[ target machine is also running a wifi hotspot and an ssh server ]
Ubuntu 11.04 - Natty Narwhal

terry@terry-HP:~$ uname -a
Linux terry-HP 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:07:17 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

[ Creating an 'ad-hoc' wifi spot ]
Click the 'up down arrow' icon ( or what have you )

[ choose menu item to create a wifi ad-hoc hotspot ]

[ create the ad-hoc wifi hotspot ]

[ the eth1 connection is the created ad-hoc network with an essid of 'terry' ]

[ the ad-hoc wifi hotspot is now visible on the 'host' computer and other computer as well now ]

[ enter the following on the machine being cloned with clonezilla
[ at the appropriate place in the clonezilla backup image step ]
terry@terry-HP:~$ ip link set wlan0 down
terry@terry-HP:~$ iwconfig wlan0 mode ad-hoc

Translators, maps, conduits, and containers

The Amiga had a hardware emulator which transformed instruction to instruction to a dedicated x86 hardware interpreter in the Amiga could run Microsoft DOS spreadsheet programs in the Amiga OS.

MS-DOS on Amiga via Sidecar or Bridgeboard[edit]
MS-DOS compatibility was a major issue during the early years of the Amiga's lifespan in order to promote the machine as a serious business machine. In order to run the MS-DOS operating system, Commodore released the Sidecar for the Amiga 1000, basically a 8088 board in a closed case that connected to the side of the Amiga. Clever programming (a library named Janus, after the two-faced Roman god of doorways) made it possible to run PC software in an Amiga window without use of emulation. At the introduction of the Sidecar the crowd was stunned to see the MS-DOS version of Microsoft Flight Simulator running at full speed in an Amiga window on the Workbench.

Later the Sidecar was implemented on an expansion card named "Bridgebo…

Use Gwenview to upload images to

Use Gwenview to upload images to

install the following KDE4 plugins:

terry@narwhal:~/download$ sudo apt-get install kipi-plugins
From Linux Clicks...
the Gwenview application...

From Linux Clicks...