Book description
Now that ActionScript is reengineered from top to bottom as a true object-oriented programming (OOP) language, reusable design patterns are an ideal way to solve common problems in Flash and Flex applications. If you're an experienced Flash or Flex developer ready to tackle sophisticated programming techniques with ActionScript 3.0, this hands-on introduction to design patterns is the book you need.
ActionScript 3.0 Design Patterns takes you step by step through the process, first by explaining how design patterns provide a clear road map for structuring code that actually makes OOP languages easier to learn and use. You then learn about various types of design patterns and construct small abstract examples before trying your hand at building full-fledged working applications outlined in the book. Topics in ActionScript 3.0 Design Patterns include:
- Key features of ActionScript 3.0 and why it became an OOP language
- OOP characteristics, such as classes, abstraction, inheritance, and polymorphism
- The benefits of using design patterns
- Creational patterns, including Factory and Singleton patterns
- Structural patterns, including Decorator, Adapter, and Composite patterns
- Behavioral patterns, including Command, Observer, Strategy, and State patterns
- Multiple design patterns, including Model-View-Controller and Symmetric Proxy designs
Publisher resources
Table of contents
- A Note Regarding Supplemental Files
- Preface
- 1. Object-Oriented Programming, Design Patterns, and ActionScript 3.0
- 2. Factory Method Pattern
- 3. Singleton Pattern
-
4. Decorator Pattern
- What is the Decorator Pattern?
- Key OOP Concepts Used with the Decorator Pattern
- Minimalist Abstract Decorator
- Applying a Simple Decorator Pattern in Flash: Paper Doll
- Decorating with Deadly Sins and Heavenly Virtues
- Dynamic Selection of Concrete Components and Decorations: a Hybrid Car Dealership
- Summary
- 5. Adapter Pattern
- 6. Composite Pattern
-
7. Command Pattern
- What is the Command Pattern?
- Minimalist Example of a Command Pattern
- Key OOP Concepts in the Command Pattern
- Minimalist Example: Macro Commands
- Example: Number Manipulator
- Extended Example: Sharing Command Objects
- Extended Example: Implementing Undo
- Example: Podcast Radio
- Extended Example: Dynamic Command Object Assignment
- Summary
- 8. Observer Pattern
- 9. Template Method Pattern
- 10. State Design Pattern
- 11. Strategy Pattern
-
12. Model-View-Controller Pattern
- What is the Model-View-Controller (MVC) Pattern?
- Communication Between the MVC elements
- Embedded Patterns in the MVC
-
Minimalist Example of an MVC Pattern
- Model as a Concrete Subject in an Observer Pattern
- Controller as a Concrete Strategy in a Strategy Pattern
- View as a Concrete Observer in an Observer Pattern and context in a Strategy Pattern
- Building the MVC Triad
- Nested Views as Leaves and Nodes of a Composite Pattern
- Building the Nested View Structure
- Key Features of the MVC Pattern
- Key OOP Concepts in the MVC Pattern
- Example: Weather Maps
- Extended Example: Infrared Weather Maps
- Example: Cars
- Custom Views
- Adding a Chase Car
- Summary
- 13. Symmetric Proxy Pattern
- About the Authors
- Copyright
Product information
- Title: ActionScript 3.0 Design Patterns
- Author(s):
- Release date: July 2007
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596528461
You might also like
book
AdvancED ActionScript 3.0: Design Patterns
AdvancED ActionScript 3.0 is a fresh look and new approach to utilizing valuable, structural techniques and …
book
ActionScript Developer's Guide to Robotlegs
Robotlegs is a standout among the ActionScript 3 development frameworks available today. With it, Flash, Flex, …
article
Run Llama-2 Models Locally with llama.cpp
Llama is Meta’s answer to the growing demand for LLMs. Unlike its well-known technological relative, ChatGPT, …
book
Advanced ActionScript 3 with Design Patterns
Today's ActionScript-based applications require increasingly sophisticated architectures and code. This book aids intermediate and advanced ActionScript …