fill.color
Availability
Flash MX 2004.
Usage
fill.color
Description
Property; the color of the fill, in one of the following formats:
A string in the format
A hexadecimal number in the format
An integer that represents the decimal equivalent of a hexadecimal number
Example
The following example sets the fill color of the current selection:
var fill = fl.getDocumentDOM().getCustomFill();
fill.color = '#FFFFFF';
fl.getDocumentDOM().setCustomFill( fill );
fill.colorArray
Availability
Flash MX 2004.
Usage
fill.colorArray
Description
Property; an array of colors in the gradient, expressed as integers. This property is available
only if the value of the
. See
"linearGradient"
Example
The following example displays the color array of the current selection, if appropriate, in the
Output panel:
var fill = fl.getDocumentDOM().getCustomFill();
if(fill.style == "linearGradient" || fill.style == "radialGradient")
alert(fill.colorArray);
204
Objects
or
"#RRGGBB"
"#RRGGBBAA"
0xRRGGBB
property is either
fill.style
fill.style
or
"radialGradient"
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?