
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
3
Chapter 1
CHAPTER 1
ActionScript 2.0 Overview
Over the course of this book, we’ll study ActionScript 2.0 and object-oriented pro-
gramming in Flash exhaustively. There’s lots to learn ahead but, before we get into
too much detail, let’s start with a quick summary of ActionScript 2.0’s core features
and Flash Player 7’s new capabilities. If you have an ActionScript 1.0 background,
the summary will give you a general sense of what’s changed in the language. If, on
the other hand, you’re completely new to Flash or to ActionScript, you may want to
skip directly to Chapter 2.
ActionScript 2.0 Features
Introduced in Flash MX 2004 and Flash MX Professional 2004, ActionScript 2.0 is a
major grammatical overhaul of ActionScript as it existed in Flash 5 and Flash MX
(retroactively dubbed ActionScript 1.0). ActionScript 2.0 adds relatively little new
runtime functionality to the language but radically improves object-oriented develop-
ment in Flash by formalizing objected-oriented programming (OOP) syntax and
methodology.
While ActionScript 1.0 could be used in an object-oriented way, it lacked a tradi-
tional, official vocabulary for creating classes and objects. ActionScript 2.0 adds syn-
tactic support for traditional object-oriented features. For example, ActionScript 2.0
provides a class keyword ...