A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: If...If Statement

  1. #1
    Senior Member
    Join Date
    Jul 2000
    Posts
    243

    Post

    Ok, I have this a login type thing going on. Im loading varibles from a txt file. Everything loads fine and is where it is supose to be.
    Im trying to set up an If, If statement.
    So If The First 'IF' is right it goes to the second and so on.

    This is My script so far.

    On (Release)
    If ("/:name" eq "Billy")
    If ("/:'pw" eq "1515") ===== Remove the ' in /:'p=====
    Go to and Stop (5)
    End If
    Else
    Go to and Stop ("wrongid")
    End If
    End On

    After you enter you name & pw, It Goes to the 'wrongid' label, then when you try it again it works correctly???

    The 'wrongid' frame shows the User name & Password Fields and a Note that Reads "User Name or Password incorrect. Which Allows the user to try again.

    Why is it making the me try it twice? before it shows the Correct Frame.

    chad

  2. #2
    Registered User Bzdero's Avatar
    Join Date
    Feb 2001
    Location
    Split, Croatia
    Posts
    488
    Yes, it evaluates that way, one if after another.
    You should use this:

    If ("/:name" eq "Billy" and "/:pw" eq "1515")
    go to and stop (5)
    Else
    go to and stop ("wrongid")

    Isn't it easyer?

    Boris

    [swf width="300" height="40" background="#FFDDBB"]http://web.vip.hr/boriszdero.vip/footer6.swf[/swf]

  3. #3
    Senior Member
    Join Date
    Jul 2000
    Posts
    243
    Hmmm

    Tryed that, now it goes straight to the Wrong Id
    This is what I have now:

    On (Release)
    If ("/:name" eq "Billy" and "/w" eq "1515")
    Go to and Stop ("logged")
    Else
    Go to and Stop ("wrongid")
    End If
    End On


    ??

  4. #4
    Senior Member
    Join Date
    Jul 2000
    Posts
    243
    Got it to work..

    On (Release)
    If (/:name eq "Billy" and /w eq "1515")
    Go to and Stop ("logged")
    Else
    Go to and Stop ("wrongid")
    End If
    End On


    Thanks!!!!

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