MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 47

Extending flash
Table of Contents

Advertisement

Example
The following code sets the
current document to
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
bitmapItem.useImportedJPEGQuality
quality from 0 to 100; if
corresponds to JPEG using the default document quality value. The value
corresponds to GIF or PNG format. (See
Example
The following code sets the
current document to
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.
allowSmoothing
:
true
or
"photo"
"lossless"
is
bitmapItem.useImportedJPEGQuality
bitmapItem.useImportedJPEGQuality
compressionType
:
"photo"
property of the first item in the library of the
. If the value of
,
corresponds to JPEG with a
false
"photo"
property of the first item in the library of the
is
,
true
"photo"
"lossless"
.)
BitmapItem object
47

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents