Description
Property; an array of integers, each in the range 0 ... 255, indicating the position of the
corresponding color. This property is available only if the value of the
either
"radialGradient"
Example
The following example specifies the colors to use in a linear gradient for the current selection:
var fill = fl.getDocumentDOM().getCustomFill();
fill.style = "linearGradient";
fill.colorArray = [ 0x00ff00, 0xff0000, 0x0000ff ];
fill.posArray
= [0,
fl.getDocumentDOM().setCustomFill( fill );
fill.style
Availability
Flash MX 2004.
Usage
fill.style
Description
Property; a string that specifies the fill style. Acceptable values are
,
"linearGradient"
has a value of
noFill
"
If this value is
"linearGradient"
and
fill.posArray
Example
The following example specifies the colors to use in a linear gradient for the current selection:
var fill = fl.getDocumentDOM().getCustomFill();
fill.style= "linearGradient";
fill.colorArray = [ 0x00ff00, 0xff0000, 0x0000ff ];
fill.posArray
= [0,
fl.getDocumentDOM().setCustomFill( fill );
or
"linearGradient"
100, 200];
, and
"radialGradient"
.
"
or
"radialGradient"
are also available.
100, 200];
.
"solid"
. If an object has no fill, this property
"noFill"
, the properties
property is
fill.style
,
fill.colorArray
Fill object
207
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?