Decompiling? oh noes

How do you protect yourself from decompiling like this
http://theflashblog.com/?p=352

It looks like some people have already done it ( i tried to decompile a buddy’s site and it didn’t work)

edit:

I’ve succesfully decompiled/recompiled some flash den stuff, not cool i don’t want people taking work from people

Check into obfuscation.

Decompiling is a part of the glorious “It’s on the internet so it should be free” trend. Music, movies, software etc etc.

Just like piracy, it’s pretty weak, and just like piracy there’s very little to do about it. Obfuscation and swf encryption helps a little bit, but the only thing it really does is make it harder to comprehend the code. It’ll still decompile and still work to put in something else.

Everyone kind brought it on themselves. It’s quite sad (and please note I’m not talking about you saxx) that developer mope about their stuff getting decompiled when they are working on a pirated Vista or torrented Flash copy.

Pay for your stuff. It’s more a matter of mentality than anything else. It can only start with you, and hopefully people will realize sooner or later than stealing = bad. Just like being environmentally friendly, think grassroots!

[quote=sekasi;2357875]Decompiling is a part of the glorious “It’s on the internet so it should be free” trend. Music, movies, software etc etc.

Just like piracy, it’s pretty weak, and just like piracy there’s very little to do about it. Obfuscation and swf encryption helps a little bit, but the only thing it really does is make it harder to comprehend the code. It’ll still decompile and still work to put in something else.

Everyone kind brought it on themselves. It’s quite sad (and please note I’m not talking about you saxx) that developer mope about their stuff getting decompiled when they are working on a pirated Vista or torrented Flash copy.

Pay for your stuff. It’s more a matter of mentality than anything else. It can only start with you, and hopefully people will realize sooner or later than stealing = bad. Just like being environmentally friendly, think grassroots![/quote]

I was guilty of the pirated flash thing for a while, but i finally manned up and bought it a month ago. Alot of my friends that use flash say they’ve pirated it and they’ve been making tons of money off of it, but still can’t pay to get flash. Which is nothing compared to what they say they’re making. Oh well life goes on i guess

The main problem is the swf is a partially open format, in other words its fairly easy to make decompilers for it because the format is documented.
Your also trying to give a copy of your swf to the end user, while at the same time thinking you can somehow hide it from them.
As was mentioned you can use programs like amayeta to make the swf a bit more difficult to decompile using the normal software out there.
You can also use php techniques like http://ryanfait.com/resources/protect-flash-files-from-download to make it a little more difficult to get the swf through the normal means, however the swf still has to be sent to the users browse so it can be played so all one would have to do is use a packet sniffer to capture the swf.
Long story short, if your really that worried about people taking your code and such, flash isn’t a platform you should be working in.
If you still want to work in it, than your just going to have to deal with the reality that if somebody wants your swf and its code badly enough they can get it.

You could also use a loader to bring in an encrypted swf, though you’d need to do something interesting with the key or decompiling would still work (it’d just be harder). Here’s a post from a co-worker for AS3. But at some point you have to decide how much effort are you willing to spend, and how big of an issue is it to you?