User Guide

BitmapItem object 47
BitmapItem object
Inheritance Item object > BitmapItem object
Availability
Flash MX 2004.
Description
A BitmapItem object refers to a bitmap in the library of a document. The BitmapItem object is a
subclass of the Item object.
Property summary for the BitmapItem object
In addition to the Item object properties, the BitmapItem object has following properties:
bitmapItem.allowSmoothing
Availability
Flash MX 2004.
Usage
bitmapItem.allowSmoothing
Description
Property; a Boolean value. Set to true to allow smoothing of a bitmap; false otherwise.
Example
The following code sets the allowSmoothing property of the first item in the library of the
current document to
true:
fl.getDocumentDOM().library.items[0].allowSmoothing = true;
alert(fl.getDocumentDOM().library.items[0].allowSmoothing);
Property Description
bitmapItem.allowSmoothing Property; a Boolean value. Set to true to allow smoothing of
a bitmap;
false otherwise.
bitmapItem.compressionType Property; a string that determines the type of image
compression applied to the bitmap.
bitmapItem.quality Property; an iinteger that specifies the quality of the bitmap
bitmapItem.useImportedJPEGQuality Property; a Boolean value. To use the default imported JPEG
quality, specify
true; false otherwise.
CHAPTER 3
Objects