How to require a "registration code" for the SWF to work?

I’m wanting to create a SWF file that would have a “watermark” shown unless a “registration/unlock code” is aquired which would remove the watermark. Like a shareware type file. I’ve seen this done a few times but don’t know how. One site is : http://www.dseffects.com

They have a setup with REGSoft, and I know the registration key is passed through via FlashVars…

any ideas?

Some ideas are:
Use a separate file for some “regCode” and load over LoadVars, use of SharedObject, but all are a little triky , anyway interesting idea

what kind of code are you wanting to use anyway? like a set code all the time or like a confirmation code with random numbers?

Like a random code…I’m wanting to provide some SWFs to clients to evaluate, then if they are wanting to purchase, I can just provide the “code” to unlock it. Make sense? Like a shareware-type setup.

The SWF file would automatically call back to my domain to check if a variable exists, and if not it would stay watermarked. If it does it would remove the watermark on their end…

you cld just make a water mark version and a full version and then save your self the hassle of figuring out hos to make a shareware verison

Just write some time sensitive coding using the "Date Object”.

Something like - “If date now is 2 weeks past when site was submitted, goToAndStop” - some frame with info as to why the site is not playing anymore.

If your client is a bit handy in the IT department you will want to make sure he can’t get into your file!

Ive used both visible watermark and the date approach and they both work pretty well though I tend to favor the watermark. Of course they require re-aquiring a new unhindered version of the file, but thats typically not a big deal. Its better than giving them one that requires a system check every time its used since often the file wont be used on one computer and that can only lead to frustration when the client throws it on their laptop for a presentation only to find its asking for registration.