Please consider the latest edition.
-
The ActionScript 2.0 Language
-
Chapter 1 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
-
Chapter 2 Object-Oriented ActionScript
- Procedural Programming and Object-Oriented Programming
- Key Object-Oriented Programming Concepts
- But How Do I Apply OOP?
- On with the Show!
-
Chapter 3 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!
-
Chapter 4 Classes
- Defining Classes
- Constructor Functions (Take 1)
- Properties
- Methods
- Constructor Functions (Take 2)
- Completing the Box Class
- Putting Theory into Practice
-
Chapter 5 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
-
Chapter 6 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
-
Chapter 7 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
-
Chapter 8 Interfaces
- The Case for Interfaces
- Interfaces and Multidatatype Classes
- Interface Syntax and Use
- Multiple Type Inheritance with Interfaces
- Up Next, Packages
-
Chapter 9 Packages
- Package Syntax
- Defining Packages
- Package Access and the Classpath
- Simulating Packages in ActionScript 1.0
- Just a Little More Theory
-
Chapter 10 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
-
Chapter 11 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!
-
Chapter 12 Using Components with ActionScript 2.0
- Currency Converter Application Overview
- Preparing the Flash Document
- The CurrencyConverter Class
- Handling Component Events
- Components Complete
-
Chapter 13 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
-
Chapter 14 Distributing Class Libraries
- Sharing Class Source Files
- Sharing Classes Without Sharing Source Files
- Solving Real OOP Problems
-
-
Design Pattern Examples in ActionScript 2.0
-
Chapter 15 Introduction to Design Patterns
- Bring on the Patterns
-
Chapter 16 The Observer Design Pattern
- Implementing Observer in ActionScript 2.0
- Logger: A Complete Observer Example
- Memory Management Issues with Observer
- Beyond Observer
-
Chapter 17 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
-
Chapter 18 The Model-View-Controller Design Pattern
- The General Architecture of MVC
- A Generalized MVC Implementation
- An MVC Clock
- Further Exploration
-
Chapter 19 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
-
Appendix A ActionScript 2.0 Language Quick Reference
- Global Properties
- Global Functions
-
Appendix B Differences from ECMAScript Edition 4
-
-
Colophon
- Title:
- Essential ActionScript 2.0
- By:
- Colin Moock
- Publisher:
- O'Reilly Media
- Formats:
-
- Ebook
- Safari Books Online
- Print Release:
- June 2004
- Ebook Release:
- June 2009
- Pages:
- 528
- Print ISBN:
- 978-0-596-00652-5
- | ISBN 10:
- 0-596-00652-7
- Ebook ISBN:
- 978-0-596-10457-3
- | ISBN 10:
- 0-596-10457-X
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of Essential ActionScript 2.0 is the coral snake (Micrurus fulvius tenere). This highly dangerous snake is found in the southeastern states of North America and can also be found in Mexico. It likes wet, humid, and thick foliage-littered forests, but can be found in any environment.
The coral snake is recognized by its vibrant red, yellow and black bands. These colors ward off would-be attackers. On the head and tail are bands of black and yellow; on the midsection are black, yellow, and red bands. The red bands are always adjacent to the yellow bands. The average length of a snake is 24 inches, with a maximum length of 47 inches. The coral snake is the only venomous snake in North America to hatch its young from eggs.
Coral snakes have short, grooved, and hollow fangs located at the front of the mouth. They feed on lizards and other snakes. Coral snakes bite their prey to inject neurotoxic venom, which paralyzes the victim; however, unlike snakes of the viper family, which use a stabbing method, when a coral snake bites its victim, it hangs on for a long time to inject as much venom as possible. Coral snakes are seldom seen, due to their habit of living underground, or in cracks and crevices, and their nocturnal tendencies. Coral snakes usually do not bite humans unless handled. If a human or pet is bitten, treatment should take place as soon as possible, since coral snake bites are often fatal. Sarah Sherman was the production editor and proofreader, and Norma Emory was the copyeditor for Essential ActionScript 2.0 . Colleen Gorman and Claire Cloutier provided quality control. Ellen Troutman-Zaig wrote the index.
Ellie Volckhausen designed the cover of this book, based on a series design by Edie Freedman. The cover image is a 19th-century engraving from the Dover Pictorial Archive. Emma Colby produced the cover layout with Quark XPress 4.1 using Adobe's ITC Garamond font.
David Futato designed the interior layout. This book was converted by Julie Hawks to FrameMaker 5.5.6 with a format conversion tool created by Erik Ray, Jason McIntosh, Neil Walls, and Mike Sierra that uses Perl and XML technologies. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSans Mono Condensed. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand 9 and Adobe Photoshop 6. The tip and warning icons were drawn by Christopher Bing. This colophon was written by Janet Santackas.
