
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
496 | Index
object-oriented programming (OOP)
(continued)
projects in Flash MX Professional
2004, 290
appropriate situations for, 22
classes, 14
syntax, 15
(see also classes)
compilation, 18
datatypes defined by classes, 17
definition of, 13
design patterns (see design patterns)
encapsulation, 16
inheritance, 18
(see also inheritance)
key concepts, 14
packages, 18
starting applications, 19
objects, 14
built-in, augmenting, 201, 202
casting to supertype or subtype, 48
classes as templates for, 59
converting to strings (see serialization)
creating, xx, 15
current object, referring to with this
keyword, 84–88
error, 251
event-consumer, 231
info object, 355
instances, 14
interface, 90
properties and methods, code hints
for, 30
references to, cleaning up before deleting
object, 86
serialization of, 232–236
using, 16
(see also object-oriented programming)
Observable class (example), 354, 355
model class (MVC) as subclass of, 393
source code, 356–359
Observable interface (example), 373–377
Observer class (see Observer interface)
Observer design pattern, 349, 351, 352–380
delegation event model vs., 426
implementing in ActionScript
2.0, 354–359
Logger (complete example), 360–378
implementing using
composition, 373–377
inheritance misuse in Logger, 372
Logger class, 366–372
Logger class, using, 377
LogMessage class, 360–362
OutputPanelView ...