Flash decompilation
Date: 03/02/08
(C Sharp) Keywords: no keywords
Hi all,
Just wondered if anyone may have had a similar need to the following in the past, and had any recommendations.
I need a Flash (SWF) decompiler. More specifically, I need to use it to retrieve all of the resources referenced by the SWF so that I can store them locally. Ideally, I would then like to change all of these references within the SWF to their local copies and recompile the SWF. All of this needs to be done programmatically.
I have cobbled together something very slow and inefficient for Flash version 8 and lower using the open-source FLASM tool, but it involves shelling out to the FLASM executable, and the recompilation takes a long time.
Preferrably, I would like a native .NET component, or a COM component, that could handle these tasks without shelling out to an executable. Even more preferrably, it should support Flash version 9. I do have access to all of the SWF file specs for a number of versions, but I think I would rather purchase/use a third-party or open-source tool than devote a week or two to reinventing the wheel, if at all possible.
Googling "flash decompile" or anything similar yields a completely unwieldy result set which also happens to be useless, since most of the "decompilers" it returns are actually more interested in the conversion of, e.g., a flash animation/movie into FLA by way of decompilation. I have sincere doubts as to whether any of these tools (none of which are development components, which violates one of my requirements already) would be compatible with what I want to do, let alone whether any of them would behave reasonably enough as a commandline application to be able to shell out to it reliably.
Before I write another novel, I'll stop. Please let me know if you have any information or resources which I might find useful.
Thanks
Source: http://community.livejournal.com/csharp/94160.html