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.

The BevelFilter class lets you add a bevel effect to a variety of objects in Flash. A bevel effect<br />

gives objects such as buttons a three-dimensional look. You can customize the look of the<br />

bevel with different highlight <strong>and</strong> shadow colors, the amount of blur on the bevel, the angle of<br />

the bevel, the placement of the bevel, <strong>and</strong> a knockout effect.<br />

The use of filters depends on the object to which you apply the filter:<br />

■ To apply filters to movie clips, text fields, <strong>and</strong> buttons at runtime, use the filters<br />

property. Setting the filters property of an object does not modify the object, <strong>and</strong> you<br />

can undo the setting by clearing the filters property.<br />

■ To apply filters to BitmapData instances, use the BitmapData.applyFilter() method.<br />

Calling applyFilter on a BitmapData object takes the source BitmapData object <strong>and</strong><br />

the filter object <strong>and</strong> generates a filtered image.<br />

You can also apply filter effects to images <strong>and</strong> video at authoring time. For more information,<br />

see your authoring documentation.<br />

If you apply a filter to a movie clip or button, the cacheAsBitmap property of the movie clip<br />

or button is set to true. If you clear all filters, the original value of cacheAsBitmap is<br />

restored.<br />

This filter supports stage scaling. However, it does not support general scaling, rotation, <strong>and</strong><br />

skewing. If the object itself is scaled (if _xscale <strong>and</strong> _yscale are not 100%), the filter is not<br />

scaled. It is scaled only when you zoom in on the Stage.<br />

A filter is not applied if the resulting image exceeds 2880 pixels in width or height. If, for<br />

example, you zoom in on a large movie clip with a filter applied, the filter is turned off if the<br />

resulting image exceeds the limit of 2880 pixels.<br />

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

See also<br />

filters (MovieClip.filters property), cacheAsBitmap (MovieClip.cacheAsBitmap<br />

property), filters (Button.filters property), cacheAsBitmap<br />

(Button.cacheAsBitmap property), filters (TextField.filters property),<br />

applyFilter (BitmapData.applyFilter method), MovieClip<br />

BevelFilter (flash.filters.BevelFilter) 279

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

Saved successfully!

Ooh no, something went wrong!