Search tutorials
Creating the Actionscript:
Now you are going to create the Actionscript to make your password detector work.
Frame 1:
Select the button, open the Actions Panel , and place the following script in the Object Action panel:
on (press) {
if (myInput == "your password here") {
goToAndStop("right");
} else {
goToAndStop("wrong");
}
}
Note: In the second line, myInput is the variable
name for your Input Text field. If you change the variable name for this
text field (on the Text Options Panel), you will need to change this in
your script as well.
In the second line, substitute your password here with the correct password you have chosen.
The password detector is case sensitive.
| » Level Intermediate |
|
Added: 2001-12-21 Rating: 8 Votes: 94 |
| » Author |
| Artist living in South Africa |
| » Download |
| Download the files used in this tutorial. |
| Download (19 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!