|
-
A user clicks on a button in the Movie scene. In that button's action: IF the variable "access" = "True", it will proceed to the GetURL action. ELSE (if variable is not "True" OR DOESN'T EXIST) it plays the PasswordReq scene and requests the password. Then IF that password is 4 chars long, it will set "access" = "True" ELSE set "access" = "False".
-----------------------------------------------------------
Scene Name: Movie (a button's actionscript is the following)
On (Release)
If (access = "True")
Get URL ("http://blah blah blah")
Else
Go to and Play (PasswordReq, 1)
End If
End On
--------------------------------------------------------
Scene Name: PasswordReq (password form with 1 textfield named password and a submit button)
For the Submit button, here's the action:
On (Release)
If (Length (password) = 4)
Set Variable: "access" = "True"
Else
Set Variable: "access" = "False"
End If
End On
--------------------------------------------------------
--> Now I have a feeling I have the button's IF statement wrong (MOVIE scene). How do I check if a variable named "access" (set in another scene) was set to "True" or not? Will it work if the variable "access" was not declared/set yet? Where are these variables stored and can they span scenes? Thank you guys in advance!
[Edited by rh71 on 11-26-2000 at 04:07 PM]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|