Understanding Macromedia Flash 8 ActionScript 2: Basic Techniques for Creatives

Section 3: Built-In Classes

Chapter List

Chapter 12: Built-in Classes
Chapter 13: Built-in Classes: The MovieClip Class
Chapter 14: Built-in Classes: The Key Class
Chapter 15: Built-in Classes: The Sound Class
Chapter 16: Built-in Classes: The XML Class

Built-in Classes

ActionScript 2 makes it possible to create new, custom classes, but it also includes some essential, ready-to-go classes authored by Macromedia. Through these classes, Flash provides functionality that would otherwise be impossible to achieve. AS2's built-in classes are special because they actually act as interfaces to underlying low-level program code. This low-level code interacts directly with the computer's hardware to control the display, audio output, file I/O, and to get input from the keyboard, mouse, network, etc.

AS2 utilizes many built-in classes, but there are several which are important to this book and which deserve special attention. These include:

  • The MovieClip Class

  • The Key Class

  • The Sound Class

  • The XML Class

In the next few chapters, each of these classes will be described in detail with typical usage examples.

The MovieClip Class

In many ways, the MovieClip is the class that everything else in the Flash universe revolves around. MovieClips are the onstage performers and the offstage workers that make every Flash application what it is.

In early versions of Flash, MovieClips were constructed and arranged on the stage manually using the Flash design tools. This is still often the case, but the MovieClip class gives the AS2 programmer the ability to create and manipulate MovieClips programmatically through code. The...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Audio Amplifiers and Preamplifiers
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.