I figured a much much easier (compared to this) way to trigger Test Movie in Flash IDE from within Flex. What you’ll still need is Ant (here’s how to install), but that’s all you gonna need apart from Flex Builder and Flash. That’s the simplest ant build file to achieve this:
< ?xml version="1.0" encoding="UTF-8"?> <project name="Publish" default="Publish" basedir="./"> <!-- project specifics --> <target name="Publish"> <concat destfile="build.jsfl"> fl.getDocumentDOM().testMovie(); </concat> <exec executable="open" failonerror="true" logerror="true"> <arg line="build.jsfl" /> </exec> <delete file="build.jsfl" /> </target> </project>
This tests the frontmost document in Flash IDE. (basically what does this plugin). Tested on Mac OS X 10.5.5 with Flex Builder Pro 3.0.2 and Flash CS4.
No need for FlashCommand. No need to alter the file for other projects. Just a super easy file for people with not too many requirements.
You can still go more advanced with something like that:
(more…)