93

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?

Are there any programs online or offline that I could use?

Jabberwocky
  • 48,281
  • 17
  • 65
  • 115
Nathan Feger
  • 19,122
  • 11
  • 62
  • 71

5 Answers5

22

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
  • 18,877
  • 17
  • 76
  • 99
11

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

Here's the site: https://github.com/bef/erlswf

stefansundin
  • 2,826
  • 1
  • 20
  • 28
Lee H
  • 5,147
  • 4
  • 19
  • 22
9

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
  • 7,837
  • 3
  • 35
  • 50
  • Sothink is really very good. Lee Brimelow has a nice tutorial on using it: http://www.gotoandlearn.com/play?id=70 – Kristian J. Sep 19 '08 at 08:49
2

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
  • 8,905
  • 2
  • 35
  • 73
2

I've used Sothink SWF decompiler a couple of times, the only problem is that as project gets more complex, the output of decompiler gets harder to compile back again. But it ensures that you can get your .as files most of the time, compilable fla is a question.

Sothink SWF Decompiler

ymutlu
  • 6,585
  • 4
  • 35
  • 47