FlashSource

Flash Source

Password System...

Here you will learn how to make a password system in flash, to be used in games or other purposes...

 So here we go...

First of all make a new flash document, just default settings.

now create a text box and set the type to input text, the var to pass and the instance name to pass aswell, and make sure the box nect to single line is selcted so that the textbox will have a border around it so that you know where it is :

 now create an enter button that you will press...

and now in your timeline make another 2 blank keyfrafes...

 

 

 

 

 

now make another layer called actions, and click on the first frame of the actions layer and press f9 to get into the actions panel, and type this :

 Stop();

 now on the second blank keyframe, type in big letters CORRECT and on the third blank keyframe, type in big letters WRONG

now go back to frame 1 and click on your button that you have made,  and press F9 to get into ations and put this into it:

on(release){
 if(pass eq "your password here"){// this says that if the pass, which is the instance name we gave the text input box, if it is, what you set your password, irt will goto the correct page and stop

gotoAndStop(2); 
 }else{
  gotoAndStop(3);// this says that if it isnt correct it will goto the "wrong" frame and stop

}
}

 and ther you have it, your own password system...

Click Here To Download the Source File

 

 Thank you For Reading this tutorial i will be making more soon, since this is the first...