A few tools I’m finding useful at the moment:
For working with SWF bytecode:
- Flasm - disassembler/assembler.
- swfdump - part of swftools; gives a really good assembly/hex listing of SWF contents with -Ddu flags.
- 0xED - a free, simple hex editor for OS X.
For PHP:
- SimpleTest - unit testing framework for PHP
For swfdump, there is a Linux version that compiles well on OS X. Just ./configure, make, and then sudo make install. Or, you can download the binaries I made from below (only tested on the latest Tiger; no warranties/guarantees/etc.)
Download Swftools OS X binaries (version 1.0.1beta; current stable release). MD5 hash: 75f904b9bc5133fc0e35fb521383a45d.
The Flash bytecode and PHP unit testing tools article by Aral Balkan, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial 2.0 UK: England License.
Hi Aral, I hope you’re well… I was racking my brain yesterday about how I could, for lack of a better word, “inject” a getURL(loadimage) into a swf (upon load) as I did not have the fla. This was intended to load a tracking pixel into a advertiser’s swf. I went through the Flasm docs and didn’t really see anything like this.. but do you know if that’s possible? Do they have a “push” api?
Thanks!!
Michael
Hi Michael,
Off the cuff, a few methods come to mind: You could use Swfmill to create a new SWF that loads in the first SWF and also a class compiled by MTASC that has your actions (see http://osflash.org/mtasc and http://osflash.org/swfmill). You can also disassemble the SWF and recreate the FLA using Burak’s ASV (http://buraks.com/).