tags:

views:

1177

answers:

2

I'm interested in using Python to hack on the data in Flash swf files. There is good documentation available on the format of swf files, and I am considering writing my own Python lib to parse that data out using the standard Python struct lib.

Does anybody know of a Python project that already does this? I would also be interested in any available solutions that use Perl, Ruby, Haskell, etc.

+3  A: 

Well, unless you're doing it for fun (in which case, go for it!), why not use Ming? It supposedly has python wrappers...

Kevin Little
Some Ming examples in Python available here: http://www.freenet.org.nz/python/ming/
Adam Bernier
Cool, thanks. I remember hearding about Ming ages ago for use in PHP, but I didn't realize it did Python as well.
Parappa
+1  A: 

I found another option in SWF Tools. They provide a Python wrapper that supports generating SWF files in Python.

I'm not sure if either SWF Tools or Ming actually supports parsing in and modifying an existing swf file, however. Both seem geared more towards generating swf files from scratch.

Parappa