Book description
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 community--covers everything you'll need to know about the new ActionScript language and its methodologies for producing movies, animation, and applications on the web. Moock guides readers through this important new territory with his trademark easy-to-understand style and expertise. Moock's goal throughout the book is not just to get you to use object-oriented programming in your daily Flash work: he wants you to reap the benefits of OOP; he wants you to understand ActionScript 2.0 completely. And without question, Moock is the author who can make this happen. Essential ActionScript 2.0 begins with a tour of the language, including the fundamentals of object-oriented concepts, syntax, and usage. Those who are new to OOP will learn the basics and how to apply their understanding. Those who are familiar with OOP will leverage their prior experience to learn about Flash-based OOP. The next part of the book shows how to structure entire applications with ActionScript 2.0, teaching you best practices and techniques to build scalable, extensible, stable apps. Next, you'll explore a variety of approaches to various programming situations by applying object-oriented programming strategies, known as design patterns, to Flash. Experienced Flash developers and programmers coming from other languages will enjoy the sheer depth of Moocks's coverage and expertise in Essential ActionScript 2.0. Novice programmers will appreciate the frequent, low-jargon explanations that are often glossed over by advanced programming books. As usual, Moock guarantees quality and accuracy by working closely with Macromedia Flash engineers, including Rebecca Sun, lead developer of ActionScript 2.0. Whether you're ready to make the move to ActionScript 2.0 now or simply assessing it for the future, you'll find everything you need to know within this book. Essential ActionScript 2.0 is the one book every ActionScript coder must own.
Table of contents
- Table of Contents (1/2)
- Table of Contents (2/2)
- Foreword
- Preface
- Part I
- ActionScript 2.0 Overview
- Object-Oriented ActionScript
- Datatypes and Type Checking (1/2)
- Datatypes and Type Checking (2/2)
-
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
-
Inheritance
- A Primer on Inheritance
- Subclasses as Subtypes
- An OOP Chat Example
-
Overriding Methods and Properties
- Overriding Instance Methods
- Invoking an Overridden Instance Method
- Overriding Class Methods
- Overriding Properties
- Member Access from Inherited, Overriding, and Overridden Instance Methods (1/3)
- Member Access from Inherited, Overriding, and Overridden Instance Methods (2/3)
- Member Access from Inherited, Overriding, and Overridden Instance Methods (3/3)
- Member Access from Inherited and Overridden Class Methods
- Best Practices for Overriding
- 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
- Interfaces
- Packages
- Exceptions
- Part II
- An OOP Application Framework
-
Using Components with ActionScript 2.0
- Currency Converter Application Overview
- Preparing the Flash Document
- The CurrencyConverter Class
- Handling Component Events
- Components Complete
- MovieClip Subclasses
- Distributing Class Libraries
- Part III
- Introduction to Design Patterns
- The Observer Design Pattern
- The Singleton Design Pattern
- The Model-View-Controller Design Pattern
- The Delegation Event Model
- Part IV
-
ActionScript 2.0 Language QuickReference
- Global Properties
-
Global Functions
- Accessibility Class
- Arguments Class
- Array Class
- Boolean Class
- Button Class
- Camera Class
- Color Class
- ContextMenu Class
- ContextMenuItem Class
- Date Class
- Function Class
- Key Class
- LoadVars Class
- LocalConnection Class
- Math Class
- Microphone Class
- Mouse Class
- MovieClip Class
- MovieClipLoader Class
- NetConnection Class
- NetStream Class
- Number Class
- Object Class
- PrintJob Class
- Selection Class
- SharedObject Class
- Sound Class
- Stage Class
- String Class
- System Class
- System.capabilities Class
- System.security Class
- TextField Class
- TextField.StyleSheet Class
- TextFormat Class
- TextSnapshot Class
- Video Class
- XML Class
- XMLNode Class
- XMLSocket Class
- Differences from ECMAScript Edition 4
- Index (1/5)
- Index (2/5)
- Index (3/5)
- Index (4/5)
- Index (5/5)
Product information
- Title: Essential ActionScript 2.0
- Author(s):
- Release date: June 2004
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596006525
You might also like
book
Essential ActionScript 3.0
ActionScript 3.0 is a huge upgrade to Flash's programming language. The enhancements to ActionScript's performance, feature …
book
Beginning ActionScript 2.0
Offering guidance in an exercise-oriented format that readers will find helpful, this book is the perfect …
book
Learning ActionScript 3.0
In this book, authors Rich Shupe and Zevan Rosser share the knowledge they've gained from their …
book
Foundation ActionScript 3, Second Edition
ActionScript 3 is a full-fledged programming language, with complete object-oriented capabilities, event handling, sound and video …