ActionScript 3.0 Design Patterns

(Chris Devlin) #1
Index | 509

T


Tail.as, 231
Target.as, 180
Template design pattern, 246
template method, 332
template method algorithm, 331
Template Method pattern, 331–337
employing flexibility, 341–344
hook operation, 351–356
Baja flight example, 352–356
uses for, 352
key features, 333
minimal abstract template
method, 338–340
bare bones template method, 338
testing, 340
OOP concepts used in, 335
abstract functions and override
flexibility, 336
Hollywood Principle, 337
inheritance versus composition, 335
variation, 337
pattern model, 334
sound and video, selecting and
playing, 344–350
concrete classes, 346
detail classes, 347
format, setting up, 344
user interface, 349
summary, 356
TestCart.as, 123
TestFMS.as, 391
TestMedia.as, 55
TestPause.as, 379
TestPets.as, 27
TestRocket.as, 9
TestState.as, 366
TestStrategy.as, 404
TestStringStrategy.as, 421
TestTemplate.as, 340
TestVid.as (State pattern), 372
TextButton.as, Command pattern, 260
TextDisplayField.as, 271


TextShow.as, 421
Tidwell, Jennifer, 60
tight coupling, 181
TimedInvoker.as, 254
Timeline scripts, 6
Tricks.as, 407
Tuner.as, 118

U
Umbrella.as, 144
undo( ) command, 266
UndoLastCommand.as, 268
unencapsulated algorithms, 400
UnfilledShapeCreator.as, 88
utility button class, 259

V
vertical shooter game, 90–100
clients, 100
creator classes, 97–99
ShipCreator class, 99
Weapon class, 97
product classes, 91–97
projectiles, 91–94
space ships, 94–97
Vid.as, 346
VidAudio.as, 345
VideoFlash.as, 53
VideoWorks.as, 363, 369, 378, 389
VidPlayer.as, 47
View.as, 434
views, 430
Vlissides,John, xii

W
Weapon.as, 97
whizbang.gif, 41
WoodShed.as, 342
WorkgroupPrintjob.as, 76
Wrapper pattern, 133
wrapping, 133, 139
Free download pdf