EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Color Class

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Color class 331
In an external script file or in the Actions panel, use the new operator to create a Plant object.
var pineTree:Plant = new Plant("Evergreen","N/A");
// Confirm parameters were passed correctly
trace(pineTree.getLeafType());
trace(pineTree.getBloomSeason());
See also
dynamic
, extends, implements, interface, new
clearInterval()
Availability
Flash Player 6.
Usage
clearInterval( intervalID )
Parameters
intervalID
An object returned from a call to setInterval().
Returns
Nothing.
Description
Function; clears a call to setInterval().
Example
The following example first sets and then clears an interval call:
function callback() {
trace("interval called");
}
var intervalID;
intervalID = setInterval( callback, 1000 );
// sometime later
clearInterval( intervalID );
See also
setInterval()
Color class
Availability
Flash Player 5.
Description
The Color class lets you set the RGB color value and color transform of movie clips and retrieve
those values once they have been set.
You must use the constructor
new Color() to create a Color object before calling its methods.

Table of Contents

Related product manuals