User Guide

158 Chapter 3: Objects
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
document.getCustomFill().
Property summary for the Fill object
The following properties are available for the Fill object:
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 );
Property Description
fill.color A color string in hexadecimal format, such as #rrggbb, or an integer containing the
color value.
fill.colorArray An array of colors in gradient.
fill.matrix A Matrix object that defines the placement, orientation, and scales for gradient
fills.
fill.posArray An array of integers, each in the range 0 ... 255, indicating the position of the
corresponding color.
fill.style A string that specifies the fill style.
CHAPTER 3
Objects