I'm using something called Sentry Login to 'protect' my website's pages, but how can I write code into my SWF that prevents it being run just by entering its address into the browser's address bar - i.e. bypassing my login stuff on the html page?
Printable View
I'm using something called Sentry Login to 'protect' my website's pages, but how can I write code into my SWF that prevents it being run just by entering its address into the browser's address bar - i.e. bypassing my login stuff on the html page?
Solved it myself!
I have used loadvars in my html script that passes a variable to the swf if the user is logged in. I have placed a movie clip to cover the flash content (with a message!). If the swf receives the appropriate variable from the html page, the movie clip becomes invisible - revealing the content. Obviously this does not make my swf 100% secure but it's probably good enough to deter the casual user who tries to circumvent the log in process.