beautypg.com

Bitmapitem.usedeblocking, Bitmapitem.useimportedjpegquality – Adobe Extending Flash Professional CS5 User Manual

Page 62

background image

40

EXTENDING FLASH PROFESSIONAL

BitmapItem object

Last updated 5/2/2011

Description
Read-only property; a string, expressed as a file:/// URI, that represents the path and name of the file that was imported
into the Library.

Example
The following example displays the name and source file path of any items in the library that are of type

"bitmap"

:

for (idx in fl.getDocumentDOM().library.items) {

if (fl.getDocumentDOM().library.items[idx].itemType == "bitmap") {

var myItem = fl.getDocumentDOM().library.items[idx];

fl.trace(myItem.name + " source is " + myItem.sourceFilePath);

}

}

See also

bitmapItem.sourceFileExists

bitmapItem.useDeblocking

Availability
Flash CS4 Professional.

Usage

bitmapItem.useDeblocking

Description
Property; a Boolean value that specifies whether deblocking is enabled (

true

) or not (

false

).

Example
Assuming the first item in the Library is a bitmap item, the following code enables deblocking for the item:

var libItem = fl.getDocumentDOM().library.items[0];
libItem.useDeblocking = true;

bitmapItem.useImportedJPEGQuality

Availability
Flash MX 2004.

Usage

bitmapItem.useImportedJPEGQuality

This manual is related to the following products: