Title: Password Verification
Author: AEvision
Difficulty: Intermediate
Prerequisites: Creating buttons and basic Action Scripting

In this tutorial you're going to learn how to create a password varification system in flash.

 

Important notice: This method of password varification does not provided high level of security. Since the verification is client-side, finding out the stored password in the .swf file is not impossible. Therefore, it is strongly advised not to use this method when it comes to very important and sensetive issues. A server-side verification method is the answer in that case.

 


   

Password is: flash

 

1:

Ok, the first step is to prepare the interface and distribute the required objects and movie clips on the layers.

  • Create 5 layers as shown in Fig 1.
  • Create an input field using the Text Tool, set it to "Input" type.
  • Create a button for the submission.

The correct/wrong layer will hold our 3 verification results.

 

The 3 Verification Results:

  1. The Password is correct.
  2. The Input Field is Blank, please enter your password.
  3. The password is wrong!

Those are the three main conditions, place each on a different keyframe. In our case, the 4th, 5th and 6th keyframes represent the correct, blank and wrong conditions respectively.

 


2:

After completing and placing all the required elements on the stage, we are going now to set a few properties for the input field.

 

  • As shown in Fig 2, set the Line Type to Password. This will provide visual encryption of the entered password ( *** ).
  • Select the options to make the text selectable and to Show Borders Around Text.
  • Set the Variable to input.

 

 

Fig 1

 

 

 

 

 

 

 

Fig 2

1 | 2 | Next

   
Main | Tutorials | BestFlash | Goodies | Forums | Portfolio | Contact Us
   
 
AEvision Tutorials 2.1 - All rights reserved AEvision Designs 2002-2007
 
 
Icons provided by iconpacks.com