BitmapInstance object

Inheritance Element object > Instance object > BitmapInstance object

Availability

Flash MX 2004.

Description

The BitmapInstance object is a subclass of the Instance object and represents a bitmap in a frame (see Instance object).

Method summary for the BitmapInstance object

In addition to the Instance object methods, you can use the following methods with the BitmapInstance object:

Method

Description

bitmapInstance.getBits()

Lets you create bitmap effects by getting the bits out of the bitmap, manipulating them, and then returning them to Flash.

bitmapInstance.setBits()

Sets the bits of an existing bitmap element.

Property summary for the BitmapInstance object

In addition to the Instance object properties, you can use the following properties with the BitmapInstance object:

Property

Description

bitmapInstance.hPixels

Read-only; an integer that represents the width of the bitmap, in pixels.

bitmapInstance.vPixels

Read-only; an integer that represents the height of the bitmap, in pixels.


Flash CS3


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/main/00003842.html