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 (see Item object).

Property summary

In addition to the Item object properties, the BitmapItem object has following properties:

Property

Description

bitmapItem.allowSmoothing

A Boolean value that specifies whether to allow smoothing of a bitmap.

bitmapItem.compressionType

A string that determines the type of image compression applied to the bitmap.

bitmapItem.fileLastModifiedDate

The number of seconds that have elapsed between January 1, 1970 and the modification date of the original file.

bitmapItem.originalCompressionType

Specifies whether the item was imported as an jpeg file.

bitmapItem.sourceFileExists

Specifies whether the file that was imported to the Library still exists in the location from where it was imported.

bitmapItem.sourceFileIsCurrent

Specifies whether the file modification date of the Library item is the same as the modification date on disk of the file that was imported.

bitmapItem.sourceFilePath

The path and name of the file that was imported into the Library.

bitmapItem.useDeblocking

Specifies whether deblocking is enabled.

bitmapItem.useImportedJPEGQuality

A Boolean value that specifies whether to use the default imported JPEG quality.

Method summary

In addition to the Item object properties, the BitmapItem object has following methods:

Method

Description

bitmapItem.exportToFile()

Exports the specified item to a PNG or JPG file.