1. Home
  2. Computing & Technology
  3. Animation

Basic Flash Password Protection

By Adrien-Luc Sanders, About.com

4 of 10

Right-click the Try Again button, select Actions, and then assign the following script to the button:

on (release, keyPress “<Enter>”) {
gotoAndStop(1) ;
password = “”; }

What this does is tell Flash that when the user clicks on the Try Again button or presses the Enter key, the movie should go back to frame one (the password input screen) and stop. It should also reset the value of “password” to nothing, so that it doesn’t auto-populate mistakenly with the incorrect password (or the correct one).

Explore Animation
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Animation
  4. Flash Animation Tutorials
  5. Basic Flash Password Protection

©2009 About.com, a part of The New York Times Company.

All rights reserved.