- The Flash DOM
- The ActionScript Classes
- Extending the ActionScript Classes
- Summary
The ActionScript Classes
Flash provides a full complement of ready-made objects and classes that can be used to build applications. Just to recap, an object is generally considered to be a combination of data (properties) and programming instructions (methods) designed to fulfill a specific role in an application.
ArrayUsed to store data elements in an array, as well as perform operations on those elements such as changing their order.
BooleanStores a true or false value.
ColorActs as an interface, allowing you to change the appearance of any movie clip object that you associate with it.
DateUsed to store and manipulate date information.
KeyHolds information about the last keyboard key pressed while a movie is playing.
MathContains a collection of useful mathematical functions to make life easier. Math is instantiated by default and can be used at any time just by referring to Math.thedesiredfunction();.
MouseIncludes just two methods, show() and hide(), used to control the appearance of the cursor.
MovieClipTied closely to timelines, allowing them to be manipulated through programming.
NumberCan store and perform operations on numeric data.
ObjectIs the simplest object available. It contains no methods or properties, and it allows for the creation of custom objects.
SelectionStores information about selections in text fields.
SoundAllows for sounds to be attached to timelines played and otherwise controlled through scripting.
StringAn object that can store and perform operations on strings of text.
XML and XMLSocketAllow Flash to interact with XML data sources.