Publishing, testing, and running Actionscript projects is a pain.
“AsProject automates a variety of tasks including the creation of projects, classes, test cases, test suites, and swfmill libraries. It automates the download, installation and configuration of the debug flash player and many open source tools. AsProject also includes sophisticated build tools written in rake to automate build processes.”
Video demo or Project page
Also, a friend Corey pointed out that you can debug flash using Actionscript ExternalInterface to log to Firebug console.log instead of using ASUnit’s debug console. In your actionscript:
|
ExternalInterface.call("console.log", "FLASH: " + s);
|
And make sure to allowScriptAccess.
1
2
3
|
var so = new SWFObject("flash/xxx.swf", "myswf", "680", "200", "8", "#FFFFFF");
so.addParam("allowScriptAccess", "always");
so.write("xxx");
|
And you could call any javascript from it. ExternalInterface is a replacement for fscommand. I don’t remember but I don’t think ExternalInterface works in all browsers.