Views: 384 | Comments: | Favorited: 0 | Rating: 0
Login to rate
Speaker: Danny Patterson
Actionscript 3.0with Design Patterns
About Me
Flash/Flex Consultant
Adobe Community Expert (formerly Team Macromedia)
Authored many Articles
Authored Flash 8 Book and working on an AS3 Design Pattern book
Overview
Actionscript 3.0 Intro
Design Pattern Intro
Singleton
Proxy
State
Actionscript 3.0 Intro
Syntax Changes
Packages
Default Parameter Values
Namespaces
Override/Final
API Changes
Display List
E4X (ECMAscript for XML)
Standard DOM Event Model
Regular expressions
Design Pattern Intro
General solutions to common problems
Meant to be a guide; not a rule
Relatively Standardized
Gang of Four
Singleton
Creational Pattern
Ensure only one instance of a class is created in the application
Provides global access to that one instance
Example…
Proxy
Structural Pattern
An object that stands in for another object
Similar to other patterns:
Adapter – Handles communication to one or more objects
Facade – Simplifies the API for one or more objects
Proxy
Virtual Proxy
Creates expensive objects on demand or stands in for objects that are not ready right away
Loader Example
Remote Proxy
Handles communication with remote resources (Remoting, Web Services)
Examples (Tomorrow)
State
Behavioral Pattern
Allow an object to change its behavior when its internal state changes; the object’s class will appear to change
Many different implementations
Simple State using Conditional Statements (Example)
Distributing behavior over several classes. (Example)
More Info
Downloads and Wiki
labs.adobe.com
My Blog
DannyPatterson.com
Joey Lott’s Session (next)
Our AS3 Design Pattern Workshop Tomorrow @ 1pm
Design Pattern Book