Class
Math
Number
Object
String
System
Classes specific to Flash Player
The following sections list the classes that are specific to Flash Player and the Flash runtime
model. For the purposes of understanding ActionScript, these classes are typically grouped into
four categories:
•
"Media classes" on page 201
•
"Movie classes" on page
files and over Flash Player
•
"Client-server classes" on page 203
•
"Authoring classes" on page
authoring environment
This categorization affects the locations of the classes in the Actions toolbox but not how you use
the classes.
200
Chapter 7: Using the Built-In Classes
Description
The Math class provides convenient access to common mathematical
constants and provides several common mathematical functions. All the
properties and methods of the Math class are static and must be called with
the syntax
Math.method(parameter)
Flash ActionScript Language Reference.
The Number class is a wrapper for the primitive number data type. See
"Number class"in Flash ActionScript Language Reference.
The Object class is at the root of the ActionScript class hierarchy; all other
classes inherit its methods and properties. See "Object class"in Flash
ActionScript Language Reference.
The String class is a wrapper for the string primitive data type, which lets you
use the methods and properties of the String object to manipulate primitive
string value types. See "String class"in Flash ActionScript Language
Reference.
The System class provides information about Flash Player and the system on
which Flash Player is running (for example, screen resolution and current
system language). It also lets you show or hide the Flash Player Settings
panel and modify SWF file security settings. See "System class"in Flash
ActionScript Language Reference.
for working with sound and video
202, which provide overall control over most visual elements in SWF
for working with XML and other external data sources
204, which provide control for SWF files used in the Flash
or
. See "Math class"in
Math.constant
Need help?
Do you have a question about the FLASH MX 2004-USING ACTIONSCRIPT IN FLASH and is the answer not in the manual?
Questions and answers