Accessibility

ActionScript Article

 

Introduction to event handling in ActionScript 3.0


Trevor McCauley

Trevor McCauley

Adobe

Table of Contents

Created:
26 February 2007
User Level:
Beginner
Products:
Flash
Flex

Event handling in ActionScript has changed significantly over the past few releases of Flash Player. With the introduction of ActionScript 3.0, this trend continues. Using ActionScript 3.0, you have even more control when working with events.

This article covers the new features related to event handling in ActionScript 3.0. You'll learn how the new EventDispatcher class works—especially in relation to using mouse events. You will also learn about event propagation, event objects, and how to create your own custom events.

Requirements

To complete this tutorial you'll need to install either of the following:

Flash CS3 Professional

Flex Builder 2

Sample files

About the author

Trevor McCauley is a quality engineer at Adobe Systems who works heavily with Flash and Fireworks. Prior to working at Adobe, he worked as a developer for a production company creating various kinds of multimedia and web-based content. In his free time, Trevor develops Flash and Fireworks content for his personal site, senocular.com, and moderates forums on popular Flash-related sites such as Kirupa.com, ActionScript.org, FlashKit.com, and UltraShock.com.