Provides several ways to protect SWF files that can be used in any combination:
- Good old "checking the url" protection
- Loading external text file (url-encoded) from your server. Recommended for "smart" clients. Remember about crossdomain.xml file !
- Expire by time (like trial version)
- Bytecode. If you have some good bytecode() at hand that will (as you think) crash decompilers, place it in a frame in some clip in library and attach at runtime.
If the violation is detected, you can
- Unload root leaving the screen blank
- Show an alert message telling them ... something
- Call your own action after checking the isViolated flag property (see below for example).