Chapter 7. Communication and Events

Communications in ActionScript is completely event driven. The ActionScript 3 event model allows class objects to be completely encapsulated. Encapsulation means that class objects take care of themselves internally and are not concerned with how any other class objects function. They do their job and keep their heads down. When objects do need to communicate with the outside world, they dispatch events. Listeners are registered with objects to listen for dispatched events, and they act accordingly.

Events are triggered in many ways depending on the class. The process of handling them, however, is standardized throughout the ActionScript API. In this chapter, you will become familiarized with the ActionScript ...

Get ActionScript 3.0: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.