home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  

Book HomeActionScript: The Definitive GuideSearch this book

14.5. Identifiers

All variables, functions, and object properties are named with identifiers. ActionScript identifiers must be composed according to the following rules:

  • Identifiers must include only letters (A-Z or a-z), numbers, underscores, and dollar signs. Be especially careful never to use spaces, periods, backslashes, or other punctuation in identifiers.

  • Identifiers must start with a letter, underscore, or dollar sign (not a number).

  • Identifiers may not be identical to reserved words.

Though not strictly required, it's also good practice to follow the preceding rules when composing movie clip instance names, frame labels, and layer names.

Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.