1. Home
  2. Computing & Technology
  3. Animation

Flash Halloween Trivia Quiz

By , About.com Guide

2 of 10

Right-click on the first frame on the timeline (any layer, even a blank Actions layer if you want to) and open the Actions panel. Insert a stop to begin with, so that the movie doesn’t play beyond the splash page until we tell it to.

Then, still in the Actions pane for that frame, create a variable called score, and make it equal to 0:

stop( ) ;
var score=0;

Remember, var defines a variable when you place it in front of a new variable name. We’ll be using score to track the user’s quiz score by adding one to the value of score every time that they click a correct answer.

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. Flash Halloween Trivia Quiz

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

All rights reserved.