Fill.bitmappath, Fill.color – Adobe Extending Flash Professional CS4 User Manual
Page 223
201
EXTENDING FLASH CS4 PROFESSIONAL
Fill object
var fill = fl.getDocumentDOM().getCustomFill();
if (fill.style == "bitmap")
fl.trace("Fill image is clipped: " + fill.bitmapIsClipped);
See also
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
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.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