Search Tutorials
Password/Username System...Create 2 input text boxes. Make 1 of the text boxes variable 'User' and the other 'Password' Also create a button for the 'Go!' function. After you have done this, add a frame to your movie. Place the action: stop();in both frames. In the second frame put something like: Thanks for logging in! Just so you know if it's working or not. Ok, back to the first frame. In your login button, put the actions:
on(release){
if(_root.user == "User" && _root.pass == "password" ){
gotoAndPlay(2);
}
//-------------------------------------------------------------
if(_root.user == "Sanova" && _root.pass == "whatever" ){
gotoAndPlay(2);
}
}
If you want to add more users, then just add another if statement. Remember that the Username and Password are cAsE sEnSiTiVe. That's it for today's tutorial. Hope to write again soon! Remember to keep the variable names the same for the input text box and the dynamic text box, or else it won't work.
To give personal comments or to recommend a tutorial, eMail me at j.j.lynn@verizon.net!
If you want to know what I've been doing, check out electricpulsegaming.com and if you want to submit a game, just drop me an eMail with your submission! See ya at the next tutorial!
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||
|