Valid Names

When selecting a name for a symbol or other object follow these rules:

Determine if each name below is a valid variable name. Put the mouse over the check mark to see if you are right.

1. ball OK

2. ball 1 NO! ball1 is OK, but you can not have a space.

3. 1Fish NO! A name must start with a letter.

4. bad_dude OK The underscore is OK.

5. a123 OK

6. a1-b2 NO! The only special character that you can use is the underscore.

7. x NO! You can not use properties of a movie as names.

8. stop NO! You can not use words with special meanings (reserved words) in ActionScript as names.


INDEX, What is ActionScript, Important Things to Remember, Naming Movie Clips, Stop!, Live demo of the ball stop movie, Stop Again!, Play!, Self Study Questions
Next lesson: Code Snippets

Copyright © Zebra0.com
All rights reserved worldwide.

 
 

Naming Movie Clips