tags:

views:

378

answers:

3

I would like to decompile a .swf file and get all the images from it, in python.

Are there any libraries that do this?

+2  A: 

I don't think there are any libraries available for python, but maybe you can have an offline process to decompile swf using sothink flash decompiler Also I did not come across any decompiler so far that is 100% accurate.

CodeToGlory
+2  A: 

There are no public swf decompiler libraries for Python.

Use a 3rd party program and the Python subprocess module to execute it.

Unknown
+3  A: 

The SWFTools distribution has a command line program, SWFExtract, that can do this. You could call that from python to do what you want:

http://www.swftools.org/

http://www.swftools.org/swfextract.html

ars