Bitmapitem.compressiontype; Bitmapitem.quality; Bitmapitem.useimportedjpegquality - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

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
,
false
"photo"

bitmapItem.useImportedJPEGQuality

default document quality value. The value
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.
Example
The following code sets the
document to 65:
fl.getDocumentDOM().library.items[0].quality = 65;
alert(fl.getDocumentDOM().library.items[0].quality);
bitmapItem.useImportedJPEGQuality
Availability
Flash MX 2004.
Usage
bitmapItem.useImportedJPEGQuality
48
Chapter 3: Objects
or
"photo"
"lossless"
corresponds to JPEG using a quality from 0 to 100; if
compressionType
:
"photo"
property of the first item in the library of the current
quality
. If
bitmapItem.useImportedJPEGQuality
is
,
corresponds to JPEG using the
true
"photo"
corresponds to GIF or PNG formats.
"lossless"
property of the first item in the library of the
is

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents