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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MapTypeController.as, 454<br />

MapView.as, 449<br />

Mariner.as, 166<br />

Media.as, 53<br />

metamorphosis, 34<br />

methods, public versus protected<br />

attributes, 72<br />

Model.as, 141, 432, 445<br />

models, 430<br />

Model-View-Controller pattern (see MVC<br />

pattern)<br />

modules, 15<br />

MoveButton.as, 495<br />

MovieClip class, 7<br />

MovieClip scripts, 5<br />

MP3.as, 169<br />

Mp3.as, 53<br />

MP3Player.as, 39<br />

Muff.as, 145<br />

MultifunctionPrintJob.as, 79<br />

multiple design patterns, 425<br />

multiple inheritance, 182<br />

MVC (Model-View-Controller) pattern, 425,<br />

427–431<br />

cars, 457–466<br />

building the car, 462<br />

chase car, adding, 466–468<br />

controller, 460<br />

custom views, 463–466<br />

direction guage view, 464<br />

GPS view, 464<br />

model, 458–459<br />

views, 461<br />

<strong>com</strong>munication between elements, 428<br />

embedded patterns in, 430<br />

infrared weather maps, 451–457<br />

controllers, adding, 454<br />

models, adding, 452<br />

MVC triad, building, 456<br />

views, adding, 454<br />

integration of Observer, strategy, and<br />

Composite patterns, 468<br />

key features, 442<br />

minimal example, 431–442<br />

controller, concrete strategy in a<br />

Strategy pattern, 433<br />

model, concrete subject in Observer<br />

pattern, 431–433<br />

MVC triad, building, 435<br />

nested views, 436–441<br />

view as concrete observer in Observer<br />

pattern and context in Strategy<br />

pattern, 434<br />

OOP concepts in, 443<br />

summary, 468<br />

weather maps, 443–451<br />

controller, 446<br />

model element, 444<br />

model, setting to self-update, 451<br />

MVC triad, building, 450<br />

views, 447<br />

MyClient.as, 45<br />

Myers, Tom, 4<br />

MyObject.as, 44<br />

N<br />

Nakhimovsky, Alexander, 4<br />

nested views, 436–442<br />

and Composite pattern,, 436<br />

building the structure, 441<br />

net.ObjectEncoding class, 382<br />

NetBtn.as, 370<br />

new keyword, 65<br />

NewHighVolPrintCenter.as, 82<br />

NewLowVolPrintCenter.as, 81<br />

NewModel.as, 453<br />

NewPrintCenter.as, 81<br />

O<br />

Obfuscation.as, 158<br />

object adapters, 179<br />

minimal example, 179<br />

object <strong>com</strong>position, 285<br />

class inheritance, versus, 49<br />

object-oriented programming (see OOP)<br />

Observer pattern, 246, 282–289<br />

adding states and identifying<br />

users, 294–302<br />

ConcreteObserver class, 296<br />

multiple states, 295<br />

newspaper subscription, 300–302<br />

updated Observer, 297–300<br />

different data displays, working<br />

with, 318–330<br />

concrete classes, 319<br />

data design classes, 321–326<br />

main class, pulling elements together<br />

in, 327–330<br />

output designer, 318<br />

dynamically changing states, 302<br />

key features, 283<br />

Index | 505

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

Saved successfully!

Ooh no, something went wrong!