Sharing the Code

Programming stuff that might be useful to others

Compiling Flash files in Ant

If you have FDT (an actionscript Eclipse plugin) you can compile your FLAs using Ant. But you first need to set the location of Flash in FDT settings by going to Window > Preferences > FDT > Tools > Flash in Eclipse and entering the location of flash.exe in the Flash IDE text box (it will probably be something like C:\Program Files\Adobe\Adobe Flash CS3\Flash.exe). This will compile the FLAs in Flash – it would probably be faster if it used a command-line compiler like the one that comes with the Flex SDK but I haven’t looked into integrating this yet.

Sample build.xml:

<project name="Sample" default="compile">

    <target name="compile">
        <fdt.flashCompile>
            <fileset dir="src">
                <include name="**/*.fla"/>
            </fileset>
        </fdt.flashCompile>
    </target>

</project>

Comments are closed