This content has been marked as final.
Show 2 replies
-
1. Re: Password
TimSymons May 10, 2006 6:03 PM (in response to Hoppie)I am not very familar with the older syntax. However, with the String class you have a method named toLowerCase(). It works like this.
var myStr:String = "Tim Symons";
trace(myStr.toLowerCase());
This would produce: tim symons
According to the Help Docs this was available in Flash 5. So you might be able to rewrite you code as:
on (release, keyPress "<Enter>") {
if ((user+pass).toLowerCase() == "cf123") {
getURL("reps_only.html", "_self");
} els if ((user+pass).toLowerCase() == "cf456") {
getURL("reps_only.html", "_self");
} else {
gotoAndPlay("failure", "tryAgain");
}
}
on (release, keyPress "<Enter>") {
user= "";
pass= "";
}
Tim
-
2. Re: Password
Hoppie May 11, 2006 8:00 AM (in response to Hoppie)Thanks this works great. So what this does is convert any upper case to lower case, I like it. Thanks again for responding so quickly.

