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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access