User Guide
General coding conventions 75
For more information on Component conventions, see“Working with components in Flash
Player” on page 115.
Remember that the naming conventions in this section are guidelines. It is most important to use
a naming scheme that works well for you and use it consistently.
Avoiding reserved words
Avoid using reserved words as instance names in Flash. As a general rule, avoid using any word in
ActionScript as an instance or variable name. The following table lists reserved keywords in Flash
that cause errors in your scripts:
The following words are reserved for future use in Flash, from the ECMA-262 specification, and
ECMA-262 Edition 4 proposal. Avoid using these words because they might be used in future
editions of Flash.
add and break case
catch class continue default
delete do dynamic else
eq extends false finally
for function ge get
gt if ifFrameLoaded implements
import in instanceof interface
intrinsic le it ne
new not null on
onClipEvent or private public
return set static super
switch tellTarget this throw
try typeof var void
while with
as abstract Boolean bytes
char const debugger double
enum export final float
goto is long namespace
native package protected short
synchronized throws transient use
volatile