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 GlowFilter class lets you apply a glow effect to various objects in Flash. You have several<br />

options for the style of the glow, including inner or outer glow <strong>and</strong> knockout mode. The glow<br />

filter is similar to the drop shadow filter with the distance <strong>and</strong> angle properties of the drop<br />

shadow set to 0.<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> can be<br />

undone 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 as a result.<br />

You can also apply filter effects to images <strong>and</strong> video during authoring. 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 effect<br />

is not scaled. It is scaled only when the Stage is zoomed.<br />

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

example, if 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 />

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

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

DropShadowFilter (flash.filters.DropShadowFilter), cacheAsBitmap<br />

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

filters (TextField.filters property)<br />

608 <strong>ActionScript</strong> classes

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

Saved successfully!

Ooh no, something went wrong!