Fill object
Availability
Flash MX 2004.
Description
This object contains all the properties of the Fill color setting of the toolbar or of a selected shape.
To retrieve a Fill object, use
Property summary for the Fill object
The following properties are available for the Fill object:
Property
fill.color
fill.colorArray
fill.matrix
fill.posArray
fill.style
fill.color
Availability
Flash MX 2004.
Usage
fill.color
Description
Property; a color string in hexadecimal format, such as #rrggbb, or an integer containing the color
value.
Example
The following example sets the fill color of the current selection:
var fill = fl.getDocumentDOM().getCustomFill();
fill.color = '#FFFFFF';
fl.getDocumentDOM().setCustomFill( fill );
158
Chapter 3: Objects
document.getCustomFill()
Description
A color string in hexadecimal format, such as #rrggbb, or an integer containing the
color value.
An array of colors in gradient.
A
Matrix object
that defines the placement, orientation, and scales for gradient
fills.
An array of integers, each in the range 0 ... 255, indicating the position of the
corresponding color.
A string that specifies the fill style.
.
CHAPTER 3
Objects
Need help?
Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?