To decompile or not to decompile…
For some time now, I have noticed that pieces of software like Sothink SWF Decompiler are becoming very popular downloads. As the naming suggest, decompilers make it possible to de-construct movie files (*.swf) and recreate the structure of the original Flash source file, though not the file (*.fla) itself. Opening an SWF file with this tools lets you have access to all the elements of the movie –including image and sound files, that you can export independently to your hard drive. You can also export the ActionScript code to a text file.
I have learned a lot from source files made available to the public, by authors and members of the Flash community; but by decompiling an exported file — for which a source file is not being provided, are we doing the right thing?. Some people are really concerned about their work being copied or their materials reused somewhere else. Although the creators of these decompilers encourage you to use the tools only with your own files, the fact is that most of the people don’t download decompilers with that in mind, or do they?
In any case, I must assume that the existence of decompilers is completely legal, but what about the use of the objects one can get from a decompiled swf? As far as I know, there is no way to avoid potential abuse of swf files; so, if you really need to protect your materials, what can you do? Here are a couple of things to may want to have in mind when publishing your files:
- Include copyright information about your code, images, sound files, etc.
- Avoid placing private information within your code (e.g. passwords)