I\'m trying to protect my as3 .swf flash file code from decompilation. I cannot spend $$$ on commercial compilers though. How can i encrypt my swf for free?
Unfortunately it's fairly easy to decompile a swf with widely available free tools, so you should architect your code on the assumption that anyone can read it. Just like in JavaScript, never put sensitive information in the swf, and any particularly valuable algorithms that you want to protect from prying eyes need to run on your server, as a server-side script that you can call and get a response from.