A solution is to convert the image into a textfile which is then used to draw the image on the screen using bitmap drawing tools.

This, of course, is easily hacked by anybody with a copy of Flash because they can read your textfile and draw the bitmap themselves.

The next step is to encrypt that textfile. Problem is, you have to put your decryption code inside of Flash, which is, of course, easily hacked by anybody with a free copy of SoThink.

You cannot make secure games in Flash unless all logic is on the server and Flash becomes a "dumb" interface. This isn't going to be possible with your game because you're using a mask to reveal an image. You're also trying to control the browser and the OS file system from inside a plug-in running in that browser. Give up on that idea.

Basically, you're trying to secure an open file format (swf). You cannot do this. Any swf files you put on any public server can be downloaded and decompiled by anyone. Flash source code is never safe.

If you don't like that Flash isn't secure and is an open-format, then I suggest you write a letter to Adobe, ATTN: Circular File.

In other words, forget it. Flash is not secure because it is open and that's how it is. If you want to do something like this, you will have to use a lower-level technology, but I'm doubtful a Java plug-in will support what you're trying to do, either.

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to