In Case of Other Events

The events covered in this chapter are just a few of the many events defined in Flash and ActionScript. There are events to handle error messages and events to track the process of a file or web page loading. There are events specific to components like scroll bars, sliders, context menus, text lists, and color pickers. The good news is that you use the same statements to register an event listener and to specify the actions that are to take place when an event happens.

Here's a partial list of some of the event classes recognized by Flash Player.

Class

Description

Activity Event

Used by cameras and microphones to indicate they're active.

AsyncErrorEvent

Used to indicate an error in network communication.

ContextMenuEvent

Indicates a change when the audience interacts with a context menu.

DataEvent

Indicates raw data has completed loading.

ErrorEvent

Used to indicate a network error or failure.

Event

The base class for all other events classes.

FocusEvent

Triggers an event when the audience changes focus from one object to another.

FullScreenEvent

Indicates a change from or to full-screen display mode.

HTTPStatusEvent

Creates an event object when a network request returns an HTTP status code.

IOErrorEvent

Indicates an error when trying to load a file.

KeyboardEvent

Indicates keyboard activity.

MouseEvent

Indicates mouse activity.

NetStatusEvent

Reports on the status of a NetConnection, NetStream, or SharedObject.

ProgressEvent

Reports on the progress while a file loads.

SampleDataEvent

Used when the Flash Player requests audio data.

SecurityErrorEvent

Reports a security error.

ShaderEvent

Indicates the completion of a shader operation.

StatusEvent

Used by cameras and microphones to report on their status and connection.

SyncEvent

Used by SharedObjects to indicate a change.

TextEvent

Indicates a change when the audience enters text.

TimerEvent

Indicates the passing of a timing interval.