Fill object
205
fill.focalPoint
Availability
Flash 8.
Usage
fill.focalPoin
Description
Property; an integer that specifies the gradient focal point horizontal offset from the
transformation point. A value of 10, for example, would place the focal point at 10/255 of the
distance from the transformation point to the edge of the gradient. A value of -255 would
place the focal point at the left boundary of the gradient. The default value is 0.
This property is available only if the value of the
fill.style
property is
"radialGradient"
.
Example
The following example sets the focal point of a radial gradient to 10 pixels to the right of the
shape’s center.
var fill = fl.getDocumentDOM().getCustomFill();
fill.focalPoint = 10;
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 should be rendered with a linear RGB.
var fill = fl.getDocumentDOM().getCustomFill();
fill.linearRGB = true;
fl.getDocumentDOM().setCustomFill(fill);
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...