1. Home
  2. Computing & Technology
  3. Animation

Five Basic ActionScripting Mistakes and How to Fix Them

By , About.com Guide

1 of 5

Case Sensitivity

The Problem: You’ve entered all of your ActionScripts correctly (usually typing manually in expert mode), but you’re still getting errors. Most notably, Flash is telling you that you need semicolons on a line that doesn’t normally require them, because it’s opening or closing a function. Most likely you’ve forgotten that Flash is awfully case-sensitive, and handlers have to be typed with the proper combination of upper and lower case.

The Solution: Scan your script to make sure that all standard handlers are in bright blue, not dark blue. Dark blue is usually user-defined data; if you look at the image above, my play() ; function is entered correctly, so it’s bright blue. My onClipEvent (enterFrame), however, is incorrectly capitalized, so Flash doesn’t recognize it a handler and thus displays the text in dark blue. Watching for things like that can help you figure out what you’ve capitalized incorrectly, or even misspelled.

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. Five Basic ActionScripting Mistakes and How to Fix Them

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

All rights reserved.