Chapter 2. The Event Model
EVENT HANDLING IN ActionScript 2 and earlier can be confusing because events are handled in a number of conflicting ways. As a developer, you have the option of using event handlers left over from ActionScript 1, or new events from ActionScript 2. Some events are placed directly on button or movie-clip symbol instances, while others are not, and there are only partial implementations of the DOM event model. It’s hard to decide which event model is the best option, and you are bound to run into debugging issues if you don’t settle on a single method.
Luckily, you don’t have to deal with multiple event-handling options any longer. ActionScript 3 has a new, streamlined event-handling model that is completely based on the ...
Get The ActionScript™ 3.0 Migration Guide: Making the Move from ActionScript 2.0 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.