Runtime encapsulation with AS2

Hi,

I’m needing to secure a flash app which is currently in AS2. It is ‘encrypted’ with SWF Encrypt prior to deployment, but this doesn’t seem to be a whole lot of use…

Turns out that if you create an empty Flash movie, and load in any other existing flash app, you can inspect, instantiate, and override all classes, methods, and properties (private or otherwise), but simply running a for/in loop over _global.packagename

Try it for yourself… doesn’t matter if your target clip is ‘encrypted’ (using the term loosely) or not.

So… does anyone have any suggestions for how to protect an AS2 movie in any way? Would moving to AS3 overcome this massive security whole?? Do any pre-compile-time code obfuscators exist so my classes/methods/properties will be less obvious as to their usage?

Any suggestions will be greatly appreciated!

thanks
Marcus.