ActionScript 3.0 Design Patterns

(Chris Devlin) #1



    1. Object-Oriented Programming, Design Patterns, and ActionScript 3.0. Part I. Constant Change



    • The Pleasure of Doing Something Well

    • OOP Basics

    • Abstraction

    • Encapsulation

    • Inheritance

    • Polymorphism

    • Principles of Design Pattern Development

    • Program to Interfaces over Implementations

    • Favor Composition

    • Maintenance and Extensibility Planning

    • Your Application Plan: It Ain’t You Babe





    1. Factory Method Pattern Part II. Creational Patterns



    • What Is the Factory Method Pattern?

    • Abstract Classes in ActionScript 3.0

    • Minimalist Example

    • Hiding the Product Classes

    • Example: Print Shop

    • Extended Example: Color Printing

    • Key OOP Concepts Used in the Factory Method Pattern

    • Example: Sprite Factory viii | Table of Contents

    • Example: Vertical Shooter Game

    • Summary





    1. Singleton Pattern.



    • What Is the Singleton Pattern?

    • Key OOP Concepts Used with the Singleton Pattern

    • Minimalist Abstract Singleton

    • When to Use the Singleton Pattern

    • Summary





    1. Decorator Pattern Part III. Structural Patterns



    • 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

    • A Hybrid Car Dealership Dynamic Selection of Concrete Components and Decorations:

    • Summary





    1. Adapter Pattern



    • What Is the Adapter Pattern?

    • Object and Class Adapters

    • Key OOP Concepts in the Adapter Pattern

    • Example: Car Steering Adapter

    • Extended Example: Steering the Car Using a Mouse

    • Example: List Display Adapter

    • Extended Example: Displaying the O’Reilly New Books List

    • Summary





    1. Composite Pattern.



    • What Is the Composite Pattern?

    • Minimalist Example of a Composite Pattern

    • Key OOP Concepts in the Composite Pattern

    • Example: Music Playlists

    • Example: Animating Composite Objects Using Inverse Kinematics

      • Using Flash’s Built-in Composite Structure: the Display List Table of Contents | ix

      • Summary





      1. Command Pattern Part IV. Behavioral Patterns



      • 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





      1. Observer Pattern



      • What Is the Observer Pattern?

      • Key OOP Concepts Used with the Observer Pattern

      • Minimalist Abstract Observer

      • Example: Adding States and Identifying Users

      • Dynamically Changing States

      • Example: Working with Different Data Displays

      • Summary





      1. Template Method Pattern



      • What Is the Template Method Pattern?

      • Key OOP Concepts Used with the Template Method

      • Minimalist Example: Abstract Template Method

      • Employing Flexibility in the Template Method

      • Selecting and Playing Sound and Video

      • Hooking It Up

      • Summary







    1. State Pattern.

      • Design Pattern to Create a State Machine

      • Key OOP Concepts Used with the State Pattern

      • Minimalist Abstract State Pattern

      • Video Player Concrete State Application x | Table of Contents

      • Expanding the State Design: Adding States

      • Adding More States and Streaming Capabilities

      • Summary







      1. Strategy Pattern.



      • What Is the Strategy Pattern?

      • Key OOP Concepts Used with the Strategy Pattern

      • Minimalist Abstract State Pattern

      • Adding More Concrete Strategies and Concrete Contexts

      • Working with String Strategies

      • Summary





      1. Model-View-Controller Pattern. Part V. Multiple Patterns



      • What Is the Model-View-Controller (MVC) Pattern?

      • Communication Between the MVC Elements

      • Embedded Patterns in the MVC

      • Minimalist Example of an 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





      1. Symmetric Proxy Pattern



      • Simultaneous Game Moves and Outcomes

      • The Symmetric Proxy Pattern

      • Key OOP Concepts Used with the Symmetric Proxy

      • The Player Interface

      • The Referee

      • Information Shared Over the Internet

      • Player-Proxy Classes

      • Classes and Document Files Support

      • Summary





  • Index

Free download pdf