
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
xviii
|
Preface
You should not read this book if you are a Flash designer/animator with little or no
programming experience. (Start your study of ActionScript with ActionScript for
Flash MX: The Definitive Guide instead.)
ActionScript 2.0 Versus ActionScript 1.0
Chapter 1 introduces ActionScript 2.0 in more detail, but this discussion provides a
brief orientation for ActionScript 1.0 developers.
ActionScript 1.0 and ActionScript 2.0 have the same core syntax. Basics like condition-
als, loops, operators, and other non-object-oriented aspects of ActionScript 1.0 can be
used verbatim in ActionScript 2.0 and are still an official part of the language. In addi-
tion, object creation, property access, and method invocation have the same syntax in
ActionScript 1.0 and ActionScript 2.0. So, generally speaking, ActionScript 2.0 is famil-
iar to ActionScript 1.0 developers. The main difference between the two versions of the
language is object-oriented syntax and authoring tool support for object-oriented
development.
In ActionScript 1.0, object-oriented programming had an unintuitive syntax and
nearly no authoring tool support (e.g., no compiler messages, no class file structure,
no type checking, poor connections between code and movie assets, etc.). With
ActionScript 1.0, object-oriented programming ...