With our Flex applications, we don't obfuscate our code. We don't have any sensitive data hard coded in it.
We do encrypt data that we store on the user's database (AIR's SQLite database). All other files are binaries that are stored on user's file-system. For these files, we just obfuscate the filename.
You will need to use as3corelib with the examples in the link above.
I am concerned with having the source code itself being decrypted.
Is anyone else concerned about heir source code falling into enemy's hands ;?)
Where ya been VirtualCoder ?! We missed you, I tell you these adobe devs have just been running roughshod over people and getting out of line. As far as obfuscation, I don't use it, but I write boring internal "put-you-to-sleep-like-a-fifth-of-brandy" types of software.
If you are using Flex would have to say, what are you exactly trying to keep away from the competition. If I get your application I can deduce your business rules by using it and seeing what it allows. Depending on the relationship between your DTO's and your db I can figure out what your database schema looks like as they fly over the wire. So again what exactly are we obfuscating from the user ?
Now if it is an AIR app that is a different story...
IMHO, obfuscation is a waste of time.
Code has no inherent value. It's the business processes that give it value. If you have something worth stealing, it will be your idea. You need lawyers to protect that, not obfuscation.
@drkstr - Dumbest thing I have ever heard. Coming up with the idea for a game is the easiest part. All the time are work is in writing the code and making the assets.