O'Reilly logo

The ActionScript™ 3.0 Migration Guide: Making the Move from ActionScript 2.0 by Kris Hadlock

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required