A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: login

  1. #1
    I can customize my title now
    Join Date
    May 2003
    Location
    Denton, TX
    Posts
    248

    login

    so i have a frame that you log in on, if they get the password and username correct they go to frame 3.
    ok, but what if they get it wrong. well then i want to send them to frame 2 where it tells them they were wrong.
    for the right password code, i am using

    on (release, keyPress "<Enter>") {
    if (userName == "ken" && passWord == "carnes") {
    gotoAndStop(3);
    }
    }

    what do i add to that to send them to frame 2 for wrong?
    it seems to me that you would just put
    if not (userName == "ken...
    but its just not that simple

  2. #2
    Member
    Join Date
    Jul 2003
    Location
    I'm not quite sure
    Posts
    31
    try this
    on (release, keyPress "<Enter>") {
    if (userName == "ken" && passWord == "carnes") {
    gotoAndStop(3);
    }
    else {
    gotoAndPlay (2)
    }
    }
    i did not have time to test it in a full movie but the script is correct.
    Q13

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