Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 2 of 2
  1. #1

    Exclamation Password Loading help

    This is my first and vital post, I really need some help on this one folks. What I am trying to accomplish is use a password that will open up another swf with the correct password in the same window. I have been getting close to figuring it out but can not seem to make it work. Your help is greatly appreciated.

    here is an example of what i am talking about.....

    on (release, keyPress "<Enter>"){
    if (password eq "warriors") {
    createEmptyMovieClip("empty_mc", this.getNextHighestDepth())
    empty_mc._x = 0
    empty_mc._y = 0
    loadMovie("home.swf","empty_mc");
    }
    } else if(password eq "forum"){
    getURL("http://www.gmail.com");
    } else if (password eq "private"){
    gotoAndStop("private");
    } else {
    gotoAndStop("wrong");
    }
    }

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2
    Join Date
    Feb 2008
    Posts
    570

    Default

    The first thing i need to advise you of is that flash is a "client" and it is not secure. passwords should not kept be inside flash. if passwords are used in flash then you should pass/load them from a "server-side script". on https. you should also pass the locations or path to the .swf files
    - if you wanted to be secure.

    ok now what exactly is not working?

    when you have more 3 condidtions testing the same variable it's better practice to use a "case switch." instead of if staments. example here: http://www.flashadvisor.com/forum/he...ase-t3281.html

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial