03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

width (BitmapData.width property)<br />

public width : Number [read-only]<br />

The width of the bitmap image in pixels.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 8<br />

Example<br />

The following example shows that the width property of the Bitmap instance is read-only by<br />

trying to set it <strong>and</strong> failing:<br />

import flash.display.BitmapData;<br />

var myBitmapData:BitmapData = new BitmapData(100, 80, false, 0x00CCCCCC);<br />

var mc:MovieClip = this.createEmptyMovieClip("mc",<br />

this.getNextHighestDepth());<br />

mc.attachBitmap(myBitmapData, this.getNextHighestDepth());<br />

trace(myBitmapData.width); // 100<br />

myBitmapData.width = 999;<br />

trace(myBitmapData.width); // 100<br />

BitmapFilter (flash.filters.BitmapFilter)<br />

Object<br />

|<br />

+-flash.filters.BitmapFilter<br />

public class BitmapFilter<br />

extends Object<br />

The BitmapFilter base class for all image filter effects.<br />

The BevelFilter, BlurFilter, ColorMatrixFilter, ConvolutionFilter, DisplacementMapFilter,<br />

DropShadowFilter, GlowFilter, GradientBevelFilter, <strong>and</strong> GradientGlowFilter classes all extend<br />

the BitmapFilter class. You can apply these filter effects to bitmaps or MovieClip instances.<br />

You can create subclasses only for the preceding subclasses of the BitmapFilter class.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 8<br />

340 <strong>ActionScript</strong> classes

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!