
200
EXTENDING FLASH PROFESSIONAL
Fill object
Last updated 5/2/2011
var fill = fl.getDocumentDOM().getCustomFill();
if (fill.style == "bitmap")
fl.trace("Fill image is clipped: " + fill.bitmapIsClipped);
See also
fill.bitmapPath
fill.bitmapPath
Availability
Flash CS4 Professional.
Usage
fill.bitmapPath
Description
Property; a string that specifies the path and name of the bitmap fill in the Library. This property is available only if
the value of the
fill.style property is "bitmap".
Example
The following example sets the fill style of the specified item to a bitmap image in the Library:
var fill = fl.getDocumentDOM().getCustomFill();
fill.style = "bitmap";
fill.bitmapPath = "myBitmap.jpg";
fl.getDocumentDOM().setCustomFill(fill);
See also
fill.bitmapIsClipped
fill.color
Availability
Flash MX 2004.
Usage
fill.color
Description
Property; the color of the fill, in one of the following formats:
• A string in the format "#RRGGBB" or "#RRGGBBAA"
• A hexadecimal number in the format 0xRRGGBB
• An integer that represents the decimal equivalent of a hexadecimal number
Commenti su questo manuale