Skip to content

Essential ActionScript 2. 0 Object-Oriented Development with ActionScript 2. 0

Best in textbook rentals since 2012!

ISBN-10: 0596006527

ISBN-13: 9780596006525

Edition: 2004

Authors: Colin Moock

List price: $39.95
Blue ribbon 30 day, 100% satisfaction guarantee!
what's this?
Rush Rewards U
Members Receive:
Carrot Coin icon
XP icon
You have reached 400 XP and carrot coins. That is the daily max!

In September 2003, Macromedia released Flash MX 2004, and with it, ActionScript 2.0, a dramatically improved version of Flash's programming language. ActionScript 2.0 introduces a formal object-oriented programming syntax and methodology for creating Flash applications. From a developer's perspective, the new OOP-based techniques in ActionScript 2.0 make applications more natural to plan and conceptualize, more stable, more reusable across projects, easier to maintain, change, and expand upon, and much more. In short, they enhance the entire development process. In "Essential ActionScript 2.0, bestselling author Colin Moock--one of the most universally respected developers in the Flash…    
Customers also bought

Book details

List price: $39.95
Copyright year: 2004
Publisher: O'Reilly Media, Incorporated
Publication date: 7/6/2004
Binding: Paperback
Pages: 532
Size: 7.00" wide x 9.00" long x 1.00" tall
Weight: 1.628
Language: English

is an independent web guru with a passion for networked creativity and expression. He has been researching, designing, and developing for the Web since 1995. Colin served as webmaster for SoftQuad, Inc. (makers of HoTMetaL PRO) until 1997, and then as web evangelist for ICE (one of Canada's leading interactive agencies) until 2001. He has created interactive content for Sony, Levi's, Nortel, Air Canada, Procter & Gamble, and Hewlett-Packard. Colin now divides his time between writing, speaking at conferences, and researching emerging web technology. His award-winning Flash work and his renowned support site for Flash developers ( http://www.moock.org ) have made him a well-known personality…    

Foreword
Preface
The ActionScript 2.0 Language
ActionScript 2.0 Overview
ActionScript 2.0 Features
Features Introduced by Flash Player 7
Flash MX 2004 Version 2 Components
ActionScript 1.0 and 2.0 in Flash Player 6 and 7
Let's Go OOP
Object-Oriented ActionScript
Procedural Programming and Object-Oriented Programming
Key Object-Oriented Programming Concepts
But How Do I Apply OOP?
On with the Show!
Datatypes and Type Checking
Why Static Typing?
Type Syntax
Compatible Types
Built-in Dynamic Classes
Circumventing Type Checking
Casting
Datatype Information for Built-in Classes
ActionScript 2.0 Type Checking Gotchas
Up Next: Creating Classes--Your Own Datatypes!
Classes
Defining Classes
Constructor Functions (Take 1)
Properties
Methods
Constructor Functions (Take 2)
Completing the Box Class
Putting Theory into Practice
Authoring an ActionScript 2.0 Class
Class Authoring Quick Start
Designing the ImageViewer Class
ImageViewer Implementation (Take 1)
Using ImageViewer in a Movie
ImageViewer Implementation (Take 2)
ImageViewer Implementation (Take 3)
Back to the Classroom
Inheritance
A Primer on Inheritance
Subclasses as Subtypes
An OOP Chat Example
Overriding Methods and Properties
Constructor Functions in Subclasses
Subclassing Built-in Classes
Augmenting Built-in Classes and Objects
The Theory of Inheritance
Abstract and Final Classes Not Supported
Let's Try Inheritance
Authoring an ActionScript 2.0 Subclass
Extending ImageViewer's Capabilities
The ImageViewerDeluxe Skeleton
Adding setPosition() and setSize() Methods
Autosizing the Image Viewer
Using ImageViewerDeluxe
Moving Right Along
Interfaces
The Case for Interfaces
Interfaces and Multidatatype Classes
Interface Syntax and Use
Multiple Type Inheritance with Interfaces
Up Next, Packages
Packages
Package Syntax
Defining Packages
Package Access and the Classpath
Simulating Packages in ActionScript 1.0
Just a Little More Theory
Exceptions
The Exception-Handling Cycle
Handling Multiple Types of Exceptions
Exception Bubbling
The finally Block
Nested Exceptions
Control Flow Changes in try/catch/finally
Limitations of Exception Handling in ActionScript 2.0
From Concepts to Code
Application Development
An OOP Application Framework
The Basic Directory Structure
The Flash Document (.fla file)
The Classes
The Document Timeline
The Exported Flash Movie (.swf file)
Projects in Flash MX Professional 2004
Let's See It in Action!
Using Components with ActionScript 2.0
Currency Converter Application Overview
Preparing the Flash Document
The CurrencyConverter Class
Handling Component Events
Components Complete
MovieClip Subclasses
The Duality of MovieClip Subclasses
Avatar: A MovieClip Subclass Example
Avatar: The Composition Version
Issues with Nested Assets
A Note on MovieClip Sub-subclasses
Curiouser and Curiouser
Distributing Class Libraries
Sharing Class Source Files
Sharing Classes Without Sharing Source Files
Solving Real OOP Problems
Design Pattern Examples in ActionScript 2.0
Introduction to Design Patterns
Bring on the Patterns
The Observer Design Pattern
Implementing Observer in ActionScript 2.0
Logger: A Complete Observer Example
Memory Management Issues with Observer
Beyond Observer
The Singleton Design Pattern
Implementing Singleton in ActionScript 2.0
The Singleton Pattern in the Logger Class
Singleton Versus Class Methods and Class Properties
A Warning Against Singletons as Globals
On to User Interfaces
The Model-View-Controller Design Pattern
The General Architecture of MVC
A Generalized MVC Implementation
An MVC Clock
Further Exploration
The Delegation Event Model
Structure and Participants
The Flow of Logic
Core Implementation
NightSky: A Delegation Event Model Example
Other Event Architectures in ActionScript
From Some Place to Some OtherPlace
Appendixes
ActionScript 2.0 Language Quick Reference
Differences from ECMAScript Edition 4
Index