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.
Summary of Contents for FLASH MX 2004 - ACTIONSCRIPT
Page 1: ...ActionScript Reference Guide...
Page 8: ...8 Contents...
Page 12: ......
Page 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Page 54: ...54 Chapter 2 ActionScript Basics...
Page 80: ...80 Chapter 3 Writing and Debugging Scripts...
Page 82: ......
Page 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Page 112: ......
Page 120: ...120 Chapter 6 Using the Built In Classes...
Page 176: ......
Page 192: ...192 Chapter 10 Working with External Data...
Page 202: ...202 Chapter 11 Working with External Media...
Page 204: ......
Page 782: ...782 Chapter 12 ActionScript Dictionary...
Page 793: ...Other keys 793 221 222 Key Key code...
Page 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Page 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Page 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Page 816: ...816 Index...