SWFUtils - tools for reading swf files with ActionScript3

segfaultlabs.com » Projects » SWFUtils

SWFUtils is a collection of ActionScript 3 classes for reading SWF files. With SWFUtils you can parse swf files, and read all its tags. Dump actions for AVM1 (ActionAcript1/2) and AVM (ActionAcript3 ABC code). DoABC parsing module is based on code from Tamarin project (utils/abcdump.as).

SWFUtils works with Flash CS3 / Flex / AIR. It uses ByteArray for reading swf files. In AIR (Desktop), to decrease memory usage, you can work with FileStream classes instead.

What can You do with SWFUtils

SVN

24.IV.08 : Code preview is now available for download in our repository

svn checkout http://svn.segfaultlabs.com/swfutils local_dir/

Code isn't yet documented but will be, if only I find enough time.

Examples

example I

This is example of using SWFUtils to get information about swf file content. If loaded SWF file contains as3 code You can dump abc data.
Online flex example is available here. Right click to see source code for this example.
Dumping ABC code can cause script running long, and Your browser can die!
You can also download this example.

Recommended literature

Contact with author

mateusz@malczak.info