Fill.linearrgb, Fill.matrix – Adobe Extending Flash Professional CS5 User Manual
Page 224
202
EXTENDING FLASH PROFESSIONAL
Fill object
Last updated 5/2/2011
Example
The following example sets the focal point of a radial gradient for the current selection to 100 pixels to the right of the
shape’s center:
var fill = fl.getDocumentDOM().getCustomFill();
fill.style = "radialGradient";
fill.colorArray = ["#00ff00","#ff00ff"];
fill.posArray = [0, 255];
fill.focalPoint = 10100;
fl.getDocumentDOM().setCustomFill(fill);
fill.linearRGB
Availability
Flash 8.
Usage
fill.linearRGB
Description
Property; a Boolean value that specifies whether to render the fill as a linear or radial RGB gradient. Set this property
to
true
to specify a linear interpolation of a gradient; set it to
false
to specify a radial interpolation of a gradient. The
default value is
false
.
Example
The following example specifies that the gradient of the current selection should be rendered with a linear RGB:
var fill = fl.getDocumentDOM().getCustomFill();
fill.linearRGB style = true"radialGradient";
fill.colorArray = ["#00ff00","#ff00ff"];
fill.posArray = [0, 255];
fill.focalPoint = 100;
fill.linearRGB = true;
fl.getDocumentDOM().setCustomFill(fill);
fill.matrix
Availability
Flash MX 2004.
Usage
fill.matrix
Description
Property; a
that defines the placement, orientation, and scales for gradient fills.