views:

971

answers:

6

I am the maintainer of a site that has allegedly 'lost' the source code to a flash swf file. How do I decompile this source?

+1  A: 

This is a possible solution: http://www.darknet.org.uk/2007/09/flare-flash-decompiler-to-extract-actionscript/

Nathan Feger
FLARE is pretty limited, and I believe not updated any more.
davr
+4  A: 

Usually 'lost' is a euphemism for "We stopped paying the developer and now he wont give us the source code."

That being said, I own a copy of Burak's ActionScript Viewer, and it works pretty well. A simple google search will find you many other SWF decompilers.

davr
ASV doesn't decompile AS3 / Flash 9 stuff as of yet.
UltimateBrent
What are you talkin about, it's decompiled AS3 stuff for ages, I've used it to do such. Of course you have to buy it, the free version is much older than the paid version.
davr
+4  A: 

erlswf is an opensource project written in erlang for decompiling .swf files.

Here's the site: http://code.google.com/p/erlswf/

Lee
nice ! thanks for the info !
sthg
+5  A: 

Get the Sothink SWF decompiler. Not free, but worth it. Recently used it to decompile an SWF that I had lost the fla for, and I could completely round-trip swf-fla and back!
link text

Robert Jeppesen
Sothink is really very good. Lee Brimelow has a nice tutorial on using it: http://www.gotoandlearn.com/play?id=70
Kristian J.
+1  A: 

I've had good luck with the SWF::File library on CPAN, and particularly the dumpswf.plx tool that comes with that distribution. It generates Perl code that, when run, regenerates your SWF.

Chris Dolan
+1  A: 

This can also be done freely online: http://www.showmycode.com/

ohadsc