SWFWire is a set of tools for Flash development. It has three main components: an inspector, a debugger and a decompiler. The inspector is an AIR application for viewing images, shapes, and even syntax-highlighted AS3 within SWF files. It’s useful to check what parts of the code are taking up the most space or making sure sensitive data isn’t being exposed. Among its features are the ability to view the data structure of each tag in the swf, preview vector shapes and JPEG images and examine classes.

The debugger is an AIR application with several features, such as a  console tab to see the full trace of function calls, a tab to view and change object properties, a tab to track object creation, ability to inspect DisplayObjects, a network tab to view the status of files loaded by URLLoaders. It’s also possible to check FPS, memory usage and , object count graph to quickly monitor performance, custom FlashVars,  save loaded and recompiled SWF files and take one-click snapshots.


// Parse a SWF file and view the result.
public function parse(bytes:ByteArray):void {
    var reader:AsyncSWFReader = new AsyncSWFReader();

    reader.addEventListener(AsyncSWFReaderEvent.TAG_READ, tagReadHandler);
    reader.addEventListener(AsyncSWFReaderEvent.READ_COMPLETE, completeHandler);

    reader.read(new SWFByteArray(bytes));

private function tagReadHandler(ev:AsyncSWFReaderEvent):void {
    var current:uint = ev.context.bytes.getBytePosition();
    var max:uint = ev.context.bytes.getLength();
    trace('Read '+current+' bytes out of '+max);

private function completeHandler(ev:AsyncSWFReaderEvent):void {
Debug . URL.