Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | RE: FLASH: Password Variables--Help? |
From: | Paul Willoughby |
Date: | Wed, 26 Jul 2000 13:32:24 +0100 |
Justin wrote:
>
>Sorry if this is a double-post. My last email didn't seem to go through.
>I wonder if someone could help me with setting up the variables required to
>enable 500-600 user names and passwords. The password will be the same for
>everyone, but the user names will be a name followed by a number (ie,
>"Alpha001", "Alpha002",...and so on, up to "Alpha500"). So it would look
>something like this:
>UserName=Alpha001-500
>Password=password (same for every user)
You could set up a loop to check through every user name like this:
Stop
Set Variable: "Count" = "0"
Set Variable: "Password" = "password"
Set Variable: "OK" = ""
Loop While (Count < 500)
Set Variable: "Count" = Count + 1
Set Variable: "NextUser" = "alpha" & Count
If (PasswordBox eq Password and UserName eq NextUser)
Set Variable: "OK" = "Yes"
End If
End Loop
If (OK eq "Yes")
Set Variable: "Message" = "You're IN"
Else
Set Variable: "Message" = "You're OUT"
End If
I checked this and it worked. UserName and PasswordBox are the text fields.
I set them up in the first frame of the movie with a stop action. A submit
button sends the movie to the next frame where the above actions are carried
out. However this is only going to work if all the user names literally
begin with "alpha"! If all the names are going to be different I don't know
what you'd do. If you restricted the name to say, 5 characters, you could
probably set up a text file that you could loop search through using a
Substring function. Also, for this to work you'll have to lose the leading
zeroes (i.e. 001. 002 etc.)
hTh
Paul
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
www.flashforward2000.com
Produced by United Digital Artists and lynda.com
Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
shockwave.com and Electric Rain.
1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
Register before June 30 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
RE: FLASH: Password Variables--Help?, Chad Kraeft
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]