6 Replies Latest reply on Dec 5, 2006 1:21 AM by Peter Lorent

    Login / Security

    Xcelsia Level 1
      Hi there,

      Trying to implement a login element to my site where access will be granted to a secret section of the site upon using the correct user name and password. I will using attchMovie to display an error message if they are incorrect and will jump to the secret section using gottoandplay with frame labels.

      To check the if/else i am simply jumping to a label on each condition. Even if i input the correct username and password it still jumps to contactspage? Any ideas. The code was taken from a past thread by KGlad.

      The code i am using is as follows:

      on (release, keyPress "<Enter>") {
      if (userName == "Vantage" && password == "Bauer") {
      _root.gotoAndPlay ("homepage");
      } else {
      _root.gotoAndPlay ("contactspage");
      }
      }