Documentation for ActionScript classes includes syntax, usage information, and code samples for methods, properties, and event handlers and listeners that belong to a specific class in ActionScript (as opposed to global functions or properties). The classes are listed alphabetically and include new classes in Flash Player 8 that are found in the flash.* packages. If you are not sure to which class a certain method or property belongs, you can look it up in the Index.
| Name | Package | Description | |
|---|---|---|---|
| Accessibility
| flash.accessibility | The Accessibility class manages communication with screen readers. | |
| AccessibilityProperties
| flash.accessibility | The AccessibilityProperties class lets you control the presentation of Flash objects to accessibility aids, such as screen readers. | |
| ActionScriptVersion
| flash.display | The ActionScriptVersion class is an enumeration of constant values that indicate the language version of a loaded SWF file. | |
| ActivityEvent
| flash.events | Flash Player dispatches an ActivityEvent object whenever a camera or microphone reports that it has become active or inactive. | |
| AntiAliasType
| flash.text | The AntiAliasType class provides values for anti-aliasing in the flash.text.TextField class. | |
| ApplicationDomain
| flash.system | The ApplicationDomain class is a container for discrete groups of class definitions. | |
| ArgumentError
| Top Level | The ArgumentError class represents an error that occurs when the arguments supplied in a function do not match the arguments defined for that function. | |
| arguments
| Top Level |
An arguments object is used to store and access a function's arguments. |
|
| Array
| Top Level | The Array class lets you access and manipulate arrays. | |
| AVM1Movie
| flash.display | The AVM1Movie class is a simple class that represents AVM1 movie clips, which use ActionScript 1.0 or 2.0. | |
| BevelFilter
| flash.filters | The BevelFilter class lets you add a bevel effect to display objects. | |
| Bitmap
| flash.display | The Bitmap class represents display objects that represent bitmap images. | |
| BitmapData
| flash.display | The BitmapData class lets you work with the data (pixels) of a Bitmap object. | |
| BitmapDataChannel
| flash.display | The BitmapDataChannel class is an enumeration of constant values that indicate which channel to use: red, blue, green, or alpha transparency. | |
| BitmapFilter
| flash.filters | The BitmapFilter class is the base class for all image filter effects. | |
| BitmapFilterQuality
| flash.filters | The BitmapFilterQuality class contains values to set the rendering quality of a BitmapFilter object. | |
| BitmapFilterType
| flash.filters | The BitmapFilterType class contains values to set the type of a BitmapFilter. | |
| BlendMode
| flash.display | A class that provides constant values for visual blend mode effects. | |
| BlurFilter
| flash.filters | The BlurFilter class lets you apply a blur visual effect to display objects. | |
| Boolean
| Top Level |
A data type that can have one of two values, either true or false. |
|
| ByteArray
| flash.utils | The ByteArray class provides methods and properties to optimize reading, writing, and working with binary data. | |
| Camera
| flash.media | The Camera class is primarily for use with Macromedia Flash Media Server, but can be used in a limited way without the server. | |
| Capabilities
| flash.system | The Capabilities class provides properties that describe the system and player hosting a SWF file. | |
| CapsStyle
| flash.display | The CapsStyle class is an enumeration of constant values that specify the caps style to use in drawing lines. | |
| Class
| Top Level | A class object is created for each class definition in a program. | |
| ColorMatrixFilter
| flash.filters | The ColorMatrixFilter class lets you apply a 4 x 5 matrix transformation on the RGBA color and alpha values of every pixel in the input image to produce a result with a new set of RGBA color and alpha values. | |
| ColorTransform
| flash.geom | The ColorTransform class lets you adjust the color values in a display object. | |
| ContextMenu
| flash.ui | The ContextMenu class provides control over the items in the Flash Player context menu. | |
| ContextMenuBuiltInItems
| flash.ui | The ContextMenuBuiltInItems class describes the items that are built in to a context menu. | |
| ContextMenuEvent
| flash.events | Flash Player dispatches ContextMenuEvent objects when a user generates or interacts with the context menu. | |
| ContextMenuItem
| flash.ui | Use the ContextMenuItem class to create custom menu items to display in the Flash Player context menu. | |
| ConvolutionFilter
| flash.filters | The ConvolutionFilter class applies a matrix convolution filter effect. | |
| CSMSettings
| flash.text |
The CSMSettings class contains properties for use with the
TextRenderer.setAdvancedAntiAliasing() method
to provide continuous stroke modulation (CSM). |
|
| CustomActions
| adobe.utils | The methods of the CustomActions class allow a SWF file playing in the Flash authoring tool to manage any custom actions that are registered with the authoring tool. | |
| DataEvent
| flash.events |
Flash Player dispatches DataEvent objects when raw data has completed loading into Flash Player but
before Flash Player has parsed the data and called the Event.COMPLETE event. |
|
| Date
| Top Level | The Date class represents date and time information. | |
| DefinitionError
| Top Level | The DefinitionError class represents an error that occurs whenever user code attempts to define an identifier that is already defined. | |
| Dictionary
| flash.utils |
The Dictionary class allows you to create a dynamic collection of properties, which uses strict equality
(===) for key comparison. |
|
| DisplacementMapFilter
| flash.filters | The DisplacementMapFilter class uses the pixel values from the specified BitmapData object (called the displacement map image) to perform a displacement of an object. | |
| DisplacementMapFilterMode
| flash.filters |
The DisplacementMapFilterMode class provides values for the mode property
of the DisplacementMapFilter class. |
|
| DisplayObject
| flash.display | The DisplayObject class is the base class for all objects that can be placed on the display list. | |
| DisplayObjectContainer
| flash.display | The DisplayObjectContainer class is the base class for all objects that can serve as display object containers on the display list. | |
| DropShadowFilter
| flash.filters | The DropShadowFilter class lets you add a drop shadow to display objects. | |
| Endian
| flash.utils | The Endian class contains values that denote the byte order used to represent multibyte numbers. | |
| EOFError
| flash.errors | An EOFError exception is thrown when you attempt to read past the end of the available data. | |
| Error
| Top Level | Contains information about an error that occurred in a script. | |
| ErrorEvent
| flash.events | Flash Player dispatches ErrorEvent objects when an error causes a network operation to fail. | |
| EvalError
| Top Level |
The EvalError class represents an error that occurs whenever user code
calls the eval() function or attempts to use the new
operator with a Function object. |
|
| Event
| flash.events | The Event class is used as the base class for the creation of Event objects, which are passed as parameters to event listeners when an event occurs. | |
| EventDispatcher
| flash.events | The EventDispatcher class implements the IEventDispatcher interface and is the base class for the DisplayObject class. | |
| EventPhase
| flash.events |
The EventPhase class provides values for the eventPhase property of the Event class. |
|
| ExternalInterface
| flash.external | The ExternalInterface class is the External API, an application programming interface that enables straightforward communication between ActionScript and the Flash Player container; for example, an HTML page with JavaScript, or a desktop application with Flash Player embedded. | |
| FileFilter
| flash.net |
The FileFilter class is used to indicate what files on the user system are shown
in the file-browsing dialog box that displays
after FileReference.browse() or FileReferenceList.browse() is called. |
|
| FileReference
| flash.net | The FileReference class provides a means to upload and download files between a user's computer and a server. | |
| FileReferenceList
| flash.net | The FileReferenceList class provides a means to let users select one or more files for uploading. | |
| FocusEvent
| flash.events | Flash Player dispatches FocusEvent objects when the user changes the focus from one object in the display list to another. | |
| Font
| flash.text | The Font class is used to manage embedded fonts in SWF files. | |
| FontStyle
| flash.text | A class that provides values for the flash.text.TextRenderer class. | |
| FontType
| flash.text |
The FontType class contains the enumerated constants of "embedded"
and "device" for the fontType property of the flash.text.Font class. |
|
| FrameLabel
| flash.display | The FrameLabel object contains properties that specify a frame number and the corresponding label name. | |
| Function
| Top Level | A Function is the basic unit of code that can be invoked in ActionScript. | |
| GlowFilter
| flash.filters | The GlowFilter class lets you apply a glow effect to display objects. | |
| GradientBevelFilter
| flash.filters | The GradientBevelFilter class lets you apply a gradient bevel effect to display objects. | |
| GradientGlowFilter
| flash.filters | The GradientGlowFilter class lets you apply a gradient glow effect to display objects. | |
| GradientType
| flash.display |
A class that provides values for the type parameter in the
beginGradientFill() and lineGradientFill() methods of the flash.display.Graphics class. |
|
| Graphics
| flash.display | The Graphics class contains a set of methods that you can use to create a vector shape. | |
| GridFitType
| flash.text | A class that defines values for grid fitting in the flash.text.TextField class. | |
| HTTPStatusEvent
| flash.events | Flash Player dispatches HTTPStatusEvent objects when a network request returns an HTTP status. | |
| IBitmapDrawable
| flash.display |
The IBitmapDrawable interface is implemented by objects that can be passed as the source
parameter of the draw() method of the BitmapData class. |
|
| ID3Info
| flash.media | A class that contains properties that reflect ID3 metadata. | |
| IDataInput
| flash.utils | The IDataInput interface provides a set of methods for reading binary data. | |
| IDataOutput
| flash.utils | The IDataOutput interface provides a set of methods for writing binary data. | |
| IDynamicPropertyOutput
| flash.net | ||
| IDynamicPropertyWriter
| flash.net | ||
| IEventDispatcher
| flash.events | The IEventDispatcher interface defines methods to add or remove event listeners, check whether specific types of event listeners are registered, and dispatch events. | |
| IExternalizable
| flash.utils | The identity of the class of an IExternalizable instance is written in the serialization stream. | |
| IllegalOperationError
| flash.errors | The IllegalOperationError exception is thrown when a method is not implemented or the implementation doesn't cover the current usage. | |
| IME
| flash.system | The IME class lets you directly manipulate the operating system's input method editor (IME) in the Flash Player application that is running on a client computer. | |
| IMEConversionMode
| flash.system |
This class contains constants for use with the IME.conversionMode
property. |
|
| IMEEvent
| flash.events | Flash Player dispatches IMEEvent objects when a user enters text using an input method editor (IME). | |
| int
| Top Level | A data type representing a 32-bit signed integer. | |
| InteractiveObject
| flash.display | The InteractiveObject class is the abstract base class for all display objects with which you can interact: mouse, keyboard, and focus. | |
| InterpolationMethod
| flash.display |
A class that provides values for the interpolationMethod
parameter in the Graphics.beginGradientFill() and
Graphics.lineGradientStyle() methods. |
|
| InvalidSWFError
| flash.errors | ||
| IOError
| flash.errors | The IOError exception is thrown when some type of input or output failure occurs. | |
| IOErrorEvent
| flash.events | Dispatched when an error causes a send or load operation to fail. | |
| JointStyle
| flash.display | The JointStyle class is an enumeration of constant values that specify the joint style to use in drawing lines. | |
| Keyboard
| flash.ui | The Keyboard class is used to build an interface that can be controlled by a user with a standard keyboard. | |
| KeyboardEvent
| flash.events | Flash Player dispatches KeyboardEvent objects in response to user input through a keyboard. | |
| KeyLocation
| flash.ui | The KeyLocation class contains constants that indicate the location of a key pressed on the keyboard. | |
| LineScaleMode
| flash.display |
A class that provides values for the scaleMode
parameter in the Graphics.lineStyle() method. |
|
| Loader
| flash.display | The Loader class is used to load SWF files or image (JPG, PNG, or GIF) files. | |
| LoaderContext
| flash.system |
Provides options for loading SWF files and other media using the Loader class. |
|
| LoaderInfo
| flash.display | The LoaderInfo class provides information about a loaded SWF file or an image file (JPEG, GIF, or PNG). | |
| LocalConnection
| flash.net |
The LocalConnection class lets you develop SWF files that can send instructions to each other without the use of fscommand()
or JavaScript. |
|
| Math
| Top Level | The Math class contains methods and constants that represent common mathematical functions and values. | |
| Matrix
| flash.geom | The Matrix class represents a transformation matrix that determines how to map points from one coordinate space to another. | |
| MemoryError
| flash.errors | The MemoryError exception is thrown when a memory allocation request fails. | |
| Microphone
| flash.media | The Microphone class lets you capture audio from a microphone attached to the computer that is running Flash Player. | |
| MorphShape
| flash.display | This class represents MorphShape objects on the display list. | |
| Mouse
| flash.ui | The methods of the Mouse class are used to hide and show the mouse pointer (cursor). | |
| MouseEvent
| flash.events | Flash Player dispatches MouseEvent objects into the event flow whenever mouse events occur. | |
| MovieClip
| flash.display | The MovieClip class inherits from the following classes: Sprite, DisplayObjectContainer, InteractiveObject, DisplayObject, and EventDispatcher. | |
| Namespace
| Top Level | The Namespace class contains methods and properties for defining and working with namespaces. | |
| NetConnection
| flash.net | The NetConnection class provides the means to invoke commands on a remote application server, such as Flash Media Server or Flex, and to play streaming FLV files from either an HTTP address or a local drive. | |
| NetStatusEvent
| flash.events | Flash Player dispatches NetStatusEvent objects when a NetConnection, NetStream, or SharedObject object reports its status. | |
| NetStream
| flash.net | The NetStream class provides methods and properties for playing Flash Video (FLV) files from the local file system or an HTTP address. | |
| Number
| Top Level | A data type representing an IEEE-754 double-precision floating-point number. | |
| Object
| Top Level | The Object class is at the root of the ActionScript class hierarchy. | |
| ObjectEncoding
| flash.net | The ObjectEncoding class allows classes that serialize objects (such as NetStream, NetConnection, SharedObject, and ByteArray) to interoperate with prior versions of ActionScript. | |
| PixelSnapping
| flash.display |
The PixelSnapping class is an enumeration of constant values for setting the pixel snapping options via
the pixelSnapping property of a Bitmap object. |
|
| Point
| flash.geom | The Point object represents a location in a two-dimensional coordinate system, where x represents the horizontal axis and y represents the vertical axis. | |
| PrintJob
| flash.printing | The PrintJob class lets you create content and print it to one or more pages. | |
| PrintJobOptions
| flash.printing |
The PrintJobOptions class contains properties to use with the
options parameter of the PrintJob.addPage() method. |
|
| PrintJobOrientation
| flash.printing |
This class provides values that are used by the PrintJob.orientation property for the image position of a printed page. |
|
| ProgressEvent
| flash.events | Flash Player dispatches ProgressEvent objects when a load operation has begun or a socket has received data. | |
| Proxy
| flash.utils | The Proxy class lets you override the default behavior of ActionScript operations (such as retrieving and modifying properties) on an object. | |
| QName
| Top Level | QName objects represent qualified names of XML elements and attributes. | |
| RangeError
| Top Level | A RangeError exception is thrown when a numeric value is outside the acceptable range. | |
| Rectangle
| flash.geom | A Rectangle object is an area defined by its position, as indicated by its top-left corner point (x, y), and by its width and its height. | |
| ReferenceError
| Top Level | A ReferenceError exception is thrown when a reference to an undefined property is attempted on a sealed (nondynamic) object. | |
| RegExp
| Top Level | The RegExp class lets you work with regular expressions, which are patterns that you can use to perform searches in strings and to replace text in strings. | |
| Responder
| flash.net |
The Responder class provides an object that is used
in NetConnection.call() to handle return
values from the server. |
|
| Scene
| flash.display | The Scene class includes properties for identifying the name, labels, and number of frames in a scene. | |
| ScriptTimeoutError
| flash.errors | The ScriptTimeoutError exception is thrown when the script timeout interval is reached. | |
| Security
| flash.system | The Security class lets you specify how SWF files in different domains can communicate with each other. | |
| SecurityDomain
| flash.system | The SecurityDomain class represents the current security "sandbox," also known as a security domain. | |
| SecurityError
| Top Level |
The SecurityError exception is thrown when some type of security violation
takes place. |
|
| SecurityErrorEvent
| flash.events | Flash Player dispatches SecurityErrorEvent objects to report the occurrence of a security error. | |
| SecurityPanel
| flash.system | The SecurityPanel class provides values for specifying which Security Settings panel you want to display. | |
| Shape
| flash.display | The Shape class is used to create lightweight shapes by using the ActionScript drawing application program interface (API). | |
| SharedObject
| flash.net | The SharedObject class is used to read and store limited amounts of data on a user's computer. | |
| SharedObjectFlushStatus
| flash.net |
A class that provides values for the return code from SharedObject.flush(). |
|
| SimpleButton
| flash.display | The SimpleButton class lets you control all instances of button symbols in a SWF file. | |
| Socket
| flash.net | The Socket class enables ActionScript code to make socket connections and read/write raw binary data. | |
| Sound
| flash.media | The Sound class lets you work with sound in an application. | |
| SoundChannel
| flash.media | The SoundChannel class controls a sound in an application. | |
| SoundLoaderContext
| flash.media | The SoundLoaderContext class provides security checks for SWF files that load sound. | |
| SoundMixer
| flash.media | The SoundMixer class contains static properties and methods for global sound control in the SWF file. | |
| SoundTransform
| flash.media | The SoundTransform class contains properties for volume and panning. | |
| SpreadMethod
| flash.display |
A class that provides values for the spreadMethod parameter
in the beginGradientFill() and lineGradientStyle() methods of the Graphics class. |
|
| Sprite
| flash.display | The Sprite class is a basic display list building block: a display list node that can display graphics and can also contain children. | |
| StackOverflowError
| flash.errors | ActionScript throws a StackOverflowError exception when the stack available to the script is exhausted. | |
| Stage
| flash.display | The Stage class represents the main drawing area. | |
| StageAlign
| flash.display |
A class that provides constant values to use for the Stage.align property. |
|
| StageQuality
| flash.display |
A class that provides values for the Stage.quality property. |
|
| StageScaleMode
| flash.display |
A class that provides values for the Stage.scaleMode property. |
|
| StaticText
| flash.text | This class represents StaticText objects on the display list. | |
| StatusEvent
| flash.events | Flash Player dispatches StatusEvent objects when a device, such as a camera or microphone, or an object such as a LocalConnection object reports its status. | |
| String
| Top Level | A data type representing a string of characters. | |
| StyleSheet
| flash.text | The StyleSheet class lets you create a StyleSheet object that contains text formatting rules for font size, color, and other styles. | |
| SWFVersion
| flash.display | The SWFVersion class is an enumeration of constant values that indicate the file format version of a loaded SWF file. | |
| SyncEvent
| flash.events | Flash Player dispatches SyncEvent objects when a remote SharedObject instance has been updated by the server. | |
| SyntaxError
| Top Level | A SyntaxError exception is thrown when a parsing error occurs. | |
| System
| flash.system | The System class contains properties related to certain operations that take place on the user's computer, such as operations with shared objects, local settings for cameras and microphones, and use of the Clipboard. | |
| TextColorType
| flash.text | The TextColorType class provides color values for the flash.text.TextRenderer class. | |
| TextDisplayMode
| flash.text | The TextDisplayMode class contains values that control the subpixel anti-aliasing of the FlashType system. | |
| TextEvent
| flash.events | Flash Player dispatches TextEvent objects when a user enters text in a text field or clicks a hyperlink in an HTML-enabled text field. | |
| TextField
| flash.text | The TextField class is used to create display objects for text display and input. | |
| TextFieldAutoSize
| flash.text |
The TextFieldAutoSize class is an enumeration of constant values used in setting the autoSize
property of the TextField class. |
|
| TextFieldType
| flash.text |
The TextFieldType class is an enumeration of constant values used in setting the type property
of the TextField class. |
|
| TextFormat
| flash.text | The TextFormat class represents character formatting information. | |
| TextFormatAlign
| flash.text | The TextFormatAlign class provides values for text alignment in the TextFormat class. | |
| TextLineMetrics
| flash.text | The TextLineMetrics class contains information about the text position and measurements of a line of text within a text field. | |
| TextRenderer
| flash.text | The TextRenderer class provides functionality for the advanced anti-aliasing capability of embedded fonts. | |
| TextSnapshot
| flash.text | TextSnapshot objects let you work with static text in a movie clip. | |
| Timer
| flash.utils | The Timer class is the interface to Flash Player timers. | |
| TimerEvent
| flash.events |
Flash Player dispatches TimerEvent objects whenever a Timer object reaches an interval
specified according to the Timer.delay property. |
|
| Transform
| flash.geom | The Transform class collects data about color transformations and coordinate transformations that are applied to a display object. | |
| TypeError
| Top Level | A TypeError exception is thrown when the actual type of an operand is different from the expected type. | |
| uint
| Top Level | The uint class provides methods for working with a data type representing a 32-bit unsigned integer. | |
| URIError
| Top Level | A URIError exception is thrown when one of the global URI handling functions is used in a way that is incompatible with its definition. | |
| URLLoader
| flash.net | The URLLoader class downloads data from a URL as text, binary data, or URL-encoded variables. | |
| URLLoaderDataFormat
| flash.net | A class that provides values that specify how downloaded data is received. | |
| URLRequest
| flash.net | The URLRequest class captures all of the information in a single HTTP request. | |
| URLRequestHeader
| flash.net | A URLRequestHeader object encapsulates a single HTTP request header and consists of a name/value pair. | |
| URLRequestMethod
| flash.net |
The URLRequestMethod class provides values that specify whether the URLRequest object is
a POST or a GET. |
|
| URLStream
| flash.net | The URLStream class provides low-level access to downloading URLs. | |
| URLVariables
| flash.net | The URLVariables class allows you to transfer variables between a Flash application and a server. | |
| VerifyError
| Top Level | The VerifyError class represents an error that occurs when a malformed or corrupted SWF file is encountered. | |
| Video
| flash.media | The Video class enables you to display live streaming video in an application without embedding it in your SWF file. | |
| WeakFunctionClosure
| flash.events | ||
| WeakMethodClosure
| flash.events | ||
| XML
| Top Level | The XML class contains methods and properties for working with XML objects. | |
| XMLDocument
| flash.xml |
The XMLDocument class is the legacy XML object
that was present in ActionScript 2.0. |
|
| XMLList
| Top Level | An XMLList object is an ordered collection of properties. | |
| XMLNode
| flash.xml | The XMLNode class is a legacy XML object that was present in ActionScript 2.0. | |
| XMLNodeType
| flash.xml |
The XMLNodeType class contains constants used with
XMLNode.nodeType. |
|
| XMLSocket
| flash.net | The XMLSocket class implements client sockets that let the computer that is running Flash Player communicate with a server computer identified by an IP address or domain name. | |
| XMLUI
| adobe.utils | The XMLUI class enables communication with SWF files that are used as custom user interfaces for the Flash authoring tool's extensibility features. |