
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Simulating Namespaces
|
321
means of defining custom events for a class. However, the undocumented ASBroad-
caster provides internal support for custom events. For details, see:
http://chattyfig.figleaf.com/flashcoders-wiki/index.php?AsBroadcaster
Branden Hall has also developed a custom event engine known as FLEM. See:
http://chattyfig.figleaf.com/flem/
http://chattyfig.figleaf.com/flem/extend.php
Design Patterns and UML
Once you’ve learned the syntax and methodology of object-oriented programming,
you’ll eventually realize that the challenging part is not the technical implementation
but the design of the classes used to represent any given application. In the OOP
world, consistent designs for similar problems have arisen and been dubbed “design
patterns.” Though there is little design pattern documentation available that specifi-
cally addresses ActionScript, design patterns are intended to be applied to any OOP-
based language. For the adventurous ActionScripter willing to learn a little Java and/
or C++, the following books are recommended:
Design Patterns Explained: A New Perspective on Object-Oriented Design, Shalloway
and Trott, Addison Wesley, 2001.
Design Patterns: Elements of Reusable Object-Oriented Software, Gamma et al, Addi-
son Wesley, 1995.
Typically, design patterns are