MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 205

Extending flash
Table of Contents

Advertisement

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
property is
.
fill.style
"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
to specify a linear interpolation of a gradient; set it to
true
to specify a radial interpolation of a gradient. The default value is
.
false
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);
Fill object
205

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents