Summary

 <  Day Day Up  >  

Throughout this chapter, several examples of inter-object communication were examined, beginning with an example from the Loan class, where a message was explicitly passed from one object to another. Next, the topic of events was explored, and we were able to see how events and event handlers are essential to OOP.

Callbacks are another important means of inter-object communication, particularly when the messages are asynchronous.

The event handling framework of Flash components is another means for objects to communicate. In addition, the AsBroadcaster class can always be used to enable any object within Flash to broadcast its messages to any other object.

In much the same way that messages enabled the development of GUIs, the same style of message can ease the development of rich, intuitive, object-oriented Flash MX 2004 applications.

 <  Day Day Up  >  


Object-Oriented Programming with ActionScript 2.0
Object-Oriented Programming with ActionScript 2.0
ISBN: 0735713804
EAN: 2147483647
Year: 2004
Pages: 162

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net