ProjectsProjects
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.
swfutils library has beed recently heavily tested, thanks to this many errors has been detected and fixed. Library was rebuilded using Flash Player 10 objects and with performence improvements. It is now being used in komixo maker, and is still under developement.
applicationDomain.getDefinition('...'), so you can create instances of exported classes without knowing what is exportedMoved to branches
Current library version in 0.3 and it is available via svn repository:
http://svn.segfaultlabs.com/swfutils/
Package contains library source code, compiled library, documentation and working example (AbcFlex.mxml).
Docs are included in svn repository.
Online version is also available at http://segfaultlabs.com/docs/swfutils
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!