BitmapItem object
47
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);
bitmapItem.compressionType
Availability
Flash MX 2004.
Usage
bitmapItem.compressionType
Description
Property; a string that determines the type of image compression applied to the bitmap.
Acceptable values are
"photo"
or
"lossless"
. If the value of
bitmapItem.useImportedJPEGQuality
is
false
,
"photo"
corresponds to JPEG with a
quality from 0 to 100; if
bitmapItem.useImportedJPEGQuality
is
true
,
"photo"
corresponds to JPEG using the default document quality value. The value
"lossless"
corresponds to GIF or PNG format. (See
bitmapItem.useImportedJPEGQuality
.)
Example
The following code sets the
compressionType
property of the first item in the library of the
current document to
"photo"
:
fl.getDocumentDOM().library.items[0].compressionType = "photo";
alert(fl.getDocumentDOM().library.items[0].compressionType);
bitmapItem.quality
Availability
Flash MX 2004.
Usage
bitmapItem.quality
Description
Property; an integer that specifies the quality of the bitmap. To use the default document
quality, specify -1; otherwise, specify an integer from 0 to 100. Available only for JPEG
compression.
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...