1. Computing & Technology

Discuss in my forum

Five Basic ActionScripting Mistakes and How to Fix Them

By , About.com Guide

1 of 5

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

©2012 About.com. All rights reserved.

A part of The New York Times Company.