332
Chapter 12: ActionScript Dictionary
Method summary for the Color class
Constructor for the Color class
Availability
Flash Player 5.
Usage
new Color(
target
)
Parameters
target
The instance name of a movie clip.
Returns
Nothing.
Description
Constructor; creates a Color object for the movie clip specified by the
target
parameter. You can
then use the methods of that Color object to change the color of the entire target movie clip.
Example
The following example creates a Color object called
my_color
for the movie clip
my_mc
and sets
its RGB value:
my_color = new Color(my_mc);
my_color.setRGB(0xff9933);
Color.getRGB()
Availability
Flash Player 5.
Usage
my_color
.getRGB()
Parameters
None.
Returns
A number that represents the RGB numeric value for the color specified.
Method
Description
Color.getRGB()
Returns the numeric RGB value set by the last
setRGB()
call.
Color.getTransform()
Returns the transform information set by the last
setTransform()
call.
Color.setRGB()
Sets the hexadecimal representation of the RGB value for a Color object.
Color.setTransform()
Sets the color transform for a Color object.
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...