1. Home
  2. Computing & Technology
  3. Animation

Basic Flash Password Protection

By , About.com Guide

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

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. 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.