10.12.2012 Views

ActionScript 3.0 Design Patterns.pdf - VideoTutorials-bg.com

ActionScript 3.0 Design Patterns.pdf - VideoTutorials-bg.com

ActionScript 3.0 Design Patterns.pdf - VideoTutorials-bg.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

E<br />

ECOOP, 470<br />

EmailCheck.as, 418<br />

encapsulate what varies, 337<br />

encapsulated algorithms, 401<br />

encapsulating variation, 400<br />

encapsulation, 15–24, 248<br />

purpose, 16<br />

enter frame event handler, 188<br />

Escape.as, 167<br />

execute( ) method, 250, 251<br />

extensiblilty planning, 57–60<br />

F<br />

factories, 66<br />

Factory Method Minimalist.fla, 69<br />

Factory Method pattern, 63, 65–68<br />

color printing example, 80–83<br />

clients, 83<br />

new creator classes, 81<br />

new product classes, 80<br />

parallel class hierarchies, 83<br />

concrete creator classes, 100<br />

creator classes, 66<br />

key OOP concepts, 84<br />

minimal example, 69–74<br />

clients, 72<br />

creator classes, 71<br />

product classes, 70<br />

product classes, hiding, 73<br />

object creation and reduction of<br />

coupling, 84<br />

parameterized factory methods, 79<br />

integrating, 81<br />

print shop example, 74–79<br />

clients, 78<br />

creator classes (print centers), 76<br />

extension, 78<br />

product classes (print jobs), 75<br />

product classes, 66<br />

Sprite factory, 84–90<br />

clients, 89<br />

creator classes (shape creators), 87<br />

product classes (shape widgets), 85<br />

summary, 100<br />

vertical shooter game, 90–100<br />

clients, 100<br />

creator classes, 97–99<br />

product classes, 91–97<br />

factory methods, 67<br />

FallDown.as, 409<br />

FancyPrintCenter.as, 79<br />

FashionShow.as, 145<br />

favor object <strong>com</strong>position over class<br />

inheritance, 49–51, 56, 285, 288<br />

FilledCircleWidget.as, 87<br />

FilledShapeCreator.as, 89<br />

FilledSquareWidget.as, 87<br />

Flash CS3, xiv<br />

document class, 69<br />

MovieClip and Button objects, making<br />

classes from, 7<br />

Flash Media Server 2 (see FMS2)<br />

Flash paper doll, 141–147<br />

<strong>com</strong>ponent class, 141<br />

concrete classes, 142<br />

concrete <strong>com</strong>ponent class, 142<br />

concrete decorator classes, 143<br />

Decorator class for dressing dolls, 141<br />

implementing the paper doll<br />

decorator, 145–147<br />

Flex 2, xiv, xv<br />

FlightPlan.as, 353<br />

FMS2 (Flash Media Server 2), xiv, xv<br />

State pattern and, 383<br />

G<br />

Gamma, Erich, xii<br />

Gang of Four (GoF), xiv<br />

generic concrete decoration, 152<br />

Geostationary Satellite Server, 443<br />

getInstance( ) function, 108<br />

GoF (Gang of Four), xiv<br />

GPS.as, 169<br />

GPSView.as, 465<br />

granularity, 59, 414<br />

Guitar.as, 28<br />

H<br />

HasBase .as, 50<br />

Hat.as, 144<br />

Head.as, 226<br />

HeatedSeat.as, 168<br />

heavenly virtues, 153–156<br />

Heliotis, James, 470<br />

Helm, Richard, xii<br />

HeroCannonBall.as, 93<br />

HeroShip.as, 96<br />

HeroWeapon.as, 98<br />

HighVolPrintCenter.as, 77<br />

Hollywood Principle, 333, 337<br />

Index | 503

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!