
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
447
Appendix A
APPENDIX A
ActionScript 2.0 Language
Quick Reference
The following reference lists the datatypes recognized by the ActionScript 2.0 com-
piler for the built-in classes, objects, global properties, and global functions in Flash
Player 7. This list will help you preemptively avoid type mismatch errors when
declaring datatypes. Or, if you’ve encountered a compiler error because you’ve used
a built-in class, object, property, or function with the wrong datatype, this list will
help you find the correct datatype and fix the error. Remember that if the datatype is
specified as Object, the compiler will accept data of any datatype. See Chapter 3 for
complete information on datatypes in ActionScript 2.0.
The ActionScript compiler retrieves datatype information at compile time from so-
called intrinsic files, which catalog the methods and properties supported by each
class. You can find the intrinsic files in your Flash program installation folder, under
Flash MX 2004\en\First Run\Classes.
Numerous errors plague the intrinsic files that shipped with Flash MX
2004 and Flash MX Professional 2004 (both the original version and
the 7.0.1 updated version). Hence, in those versions of the authoring
tool, the compiler will incorrectly skip type checking for some items
and report mistaken