ActionScript 1.0 Versus ActionScript 2.0
The ActionScript 2.0 examples must be compiled in the Flash MX 2004 or Flash MX Professional 2004 authoring environment. To make sure the AS 2.0 examples compile, you should set the ActionScript version to ActionScript 2.0 under File
Flash. All examples have been
In ActionScript 2.0, all custom class definitions must be placed in external
files. For example, the custom
class must be placed in an external plain text file named
(both the capitalization of the
We can't give a full course on OOP and ActionScript 2.0 here, although we do try to provide pointers throughout the book. For many more details on ActionScript 2.0 classes and object-oriented development, see Essential ActionScript 2.0 (O'Reilly).
Most examples can also be exported in Flash Player 6 format from Flash MX 2004 (standard or Professional edition), by setting the Export format to Flash Player 6 under File Publish Settings Flash.
The previous version of the Flash authoring tool, Flash MX, does not support ActionScript 2.0. However, many of the AS 1.0 code examples will work in Flash MX.
In some cases, this book uses timeline-based code, which, although it is not
Some of the class-based OOP examples written in ActionScript 2.0 won't compile in ActionScript 1.0 and require Flash MX 2004 (standard or Professional edition). If you are still using ActionScript 1.0 in Flash MX 2004, consider this an opportunity to broaden your horizons and use AS 2.0.
There are two distinct types of ActionScript: client-side ActionScriptwhich includes both ActionScript 1.0 and ActionScript 2.0and the server-side version, known as Server-Side ActionScript (SSAS). Client-side ActionScript is used to create
moves that run in the Flash Player on the
The flash-communications.net Site
As FlashCom evolves, you will find new information on the companion site to this book:
You can also find the examples from the book, additional tutorials and tech notes, news, additional sample files, and errata.
As people use and adapt code from the bookespecially the communication