User Guide

202 Chapter 7: Using the Built-In Classes
Movie classes
The movie classes provide control over most visual elements in a SWF file, including movie clips,
text fields, and buttons. The movie classes are located in the Actions toolbox in the Built-in
Classes > Movie directory.
Class Description
Accessibility The Accessibility class manages communication between SWF files and
screen reader applications. You use the methods of this class with the global
_accProps property to control accessible properties for movie clips, buttons,
and text fields at runtime. See “Accessibility class”in Flash ActionScript
Language Reference.
Button The Button class provides methods, properties, and event handlers for
working with buttons. See “Button class”in Flash ActionScript Language
Reference. The built-in Button class is different from the Button component
class. For information on the Button component class, see “Using the Button
component” in Using Components.
Color The Color class lets you get and set RGB color values for movie clip objects.
For more information, see “Color class”in Flash ActionScript Language
Reference. For an example of using the Color class to change the color of
movie clips, see “Setting color values” on page 187.
ContextMenu The ContextMenu class lets you control the contents of the Flash Player
context menu. You can associate separate ContextMenu objects with
MovieClip, Button, or TextField objects by using the
menu property available
to those classes. You can also add custom menu items to a ContextMenu
object by using the ContextMenuItem class. See “ContextMenu class” and
“ContextMenuItem class” in Flash ActionScript Language Reference.
ContextMenuItem The ContextMenuItem class lets you create new menu items that appear in
the Flash Player context menu. You add new menu items that you create with
this class to the Flash Player context menu by using the ContextMenu class.
See “ContextMenu class” and “ContextMenuItem class”in Flash ActionScript
Language Reference.
Key The Key class provides methods and properties for getting information about
the keyboard and keypresses. See “Key class”in Flash ActionScript
Language Reference. For an example of capturing keypresses to create an
interactive SWF file, see “Capturing keypresses” on page 184.
LocalConnection The LocalConnection class lets two SWF files running on the same computer
or web page communicate. This communication can be cross-domain. See
“LocalConnection class”in Flash ActionScript Language Reference.
Mouse The Mouse class provides control over the mouse in a SWF file; for example,
this class lets you hide or show the mouse pointer. See “Mouse class”in Flash
ActionScript Language Reference. For an example of using the Mouse class,
see “Creating a custom mouse pointer” on page 182.
MovieClip Every movie clip in a SWF file is an instance of the MovieClip class. You use
the methods and properties of this class to control movie clip objects. See the
“MovieClip class” in Flash ActionScript Language Reference and Chapter 8,
“Working with Movie Clips,” on page 205.