
200
Chapter 15: Fill object
Availability
Flash MX 2004.
Description
This object contains all the properties of the Fill color setting of the Tools panel or of a selected shape. To retrieve a Fill
object, use
document.getCustomFill().
Property summary
The following properties are available for the Fill object:
fill.bitmapIsClipped
Availability
Flash CS4 Professional.
Usage
fill.bitmapIsClipped
Description
Property; a Boolean value that specifies whether the bitmap fill for a shape that is larger than the bitmap is clipped
(
true) or repeated (false). This property is available only if the value of the fill.style property is "bitmap". If the
shape is smaller than the bitmap, this value is false.
Example
The following example displays information on whether the bitmap fill is clipped, if appropriate, in the Output panel:
Property Description
fill.bitmapIsClippe
d
A Boolean value that specifies whether the bitmap fill for a shape that is larger than the bitmap is
clipped or repeated.
fill.bitmapPath A string that specifies the path and name of the bitmap fill in the Library.
fill.color A string, hexadecimal value, or integer that represents the fill color.
fill.colorArray An array of colors in gradient.
fill.focalPoint An integer that specifies the gradient focal point horizontal offset from the transformation point.
fill.linearRGB A Boolean value that specifies whether to render the fill as a linear or radial RGB gradient.
fill.matrix A Matrix object that defines the placement, orientation, and scales for gradient fills.
fill.overflow A string that specifies the behavior of a gradient’s overflow.
fill.posArray An array of integers, each in the range of zero to 255, indicating the position of the corresponding
color.
fill.style A string that specifies the fill style.
Commentaires sur ces manuels