A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Prevent SWF from running independently of html page

  1. #1
    Member
    Join Date
    Feb 2007
    Posts
    56

    Prevent SWF from running independently of html page

    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?

  2. #2
    Member
    Join Date
    Feb 2007
    Posts
    56
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center