Hi all,
Well whaddya know? I've got a lot of Flash resources already to help me get started on my Flash website project soon. So far, I have found a lot of interesting stuff that I think I'm gonna be using on my Flash site:D.
Since I will be implementing password protection for my site, I need to have a system in place that lets visitors into the site
ONLY if they have entered the correct password. I am using a book called
Developing Websites with Macromedia Flash MX by Rickard Muller. . On page 290, step 7, it gives the following password protection code:
on (release) {
password = password.toLowerCase();
if (password == "flashmx") {
gotoAndPlay ("Scene 2", 1);
} else {
gotoAndPlay ("Scene 3", 1);
}
}
I want to modify the above code so that it is executed when the site visitor presses the Enter key. I also want to have 2 variations of a password so that it can be entered either way. Is there any way I can achieve this? The "password.toLowerCase" bit sets the password to lowercase. I don't want this to happen.
Thanks in advance,
Ben Horne
Madison Area Technical College - Truax
3550 Anderson Street
Madison, Wisconsin 53704-2599
-------------------------
http://community.webshots.com/user/valerian114
"There are two kinds of people in the world: Those who claim to be Flash junkies and those who actually are Flash junkies"