ActionScript 3.0 Design Patterns

(Chris Devlin) #1

500 | Index


B


BadImplementation.as, 106
BajaFlight.as, 353
BalloonAnimals.as, 408
BandFace.as, 28
BaseClass.as, 50
Behavioral design patterns, 245
Biz.as, 38
black boxes, 15
black-box reuse, 288
BlueDress.as, 143
BodySegment.as, 229
Bojo.as, 407
Bongo.as, 29
bongo.mp3, 41
Booch, Grady, 12
Bow.as, 144
BtnState.as, 371
BubblePants.as, 412
Bubbles.as, 412
BuildShed.as, 343
Button class, 7
Button scripts, 5


C


Car.as, 190
CarAdapter.as, 190
CarModel.as, 458
CarView.as, 461
Cat.as, 26
CBView.as, 448
CharCodeLeafView.as, 440
Chase.as, 409
ChaseController.as, 466
Checker.as, 417
children, 205
CircleWidget.as, 87
class adapters, 181
inheritance of interfaces and
implementations, 182
class inheritance versus object
composition, 49
classes
concrete creator classes, 100
creator classes, 66
internal classes, 71, 74
product classes, 66
protected classes, 74
public classes, 71
tight coupling, 181
writing for inheritance, 25


Classic.as, 35
clients, 44, 66
Client-Side ActionScript (CSAS), 382
closed for modification, 67
Cloudy.as, 354
Clown.as, 406, 411
ClownCollege.as, 410, 412
code examples, xvii
code reuse, 33
ColorInkjetPrintjob.as, 80
Command class, 250
Command pattern, 246, 247–255
class diagram, 250
command interfaces, 248
command objects, 248–250
portability, 263
sharing, 263–265
command objects, sharing
invoker, triggering by key presses, 264
command stacks, 266
concrete commands, 249
dynamic command object
assignment, 276–280
commands for, 278
context sensitive invoker, 276
setup from the client, 279
encapsulation, 248, 249
implementing undo, 266–270
abstract interface for, 266
concrete commands for, 267–269
undoable commands, client
assigned, 269
invokers, 250
key features, 250
minimal example, 251–254
clients, 253
command interface, 251
concrete commands, 251
invokers, 252
receivers, 252
triggers, setting for command
invocation, 254
minimal example, macro
commands, 255–258
client, macro command object created
from, 258
command interface, 255
concrete macro command, 257
two concrete subcommands, 256
number manipulator, 258–263
client, 263
Free download pdf