![MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference Download Page 272](http://html.mh-extra.com/html/macromedia/flash-8-actionscript-2-0-language/flash-8-actionscript-2-0-language_reference_687537272.webp)
272
ActionScript classes
See also
addListener (AsBroadcaster.addListener method)
,
initialize
(AsBroadcaster.initialize method)
BevelFilter (flash.filters.BevelFilter)
Object
|
+-flash.filters.BitmapFilter
|
+-flash.filters.BevelFilter
public class
BevelFilter
extends BitmapFilter
The BevelFilter class lets you add a bevel effect to a variety of objects in Flash. A bevel effect
gives objects such as buttons a three-dimensional look. You can customize the look of the
bevel with different highlight and shadow colors, the amount of blur on the bevel, the angle of
the bevel, the placement of the bevel, and a knockout effect.
The use of filters depends on the object to which you apply the filter:
■
To apply filters to movie clips, text fields, and buttons at runtime, use the
filters
property. Setting the
filters
property of an object does not modify the object, and you
can undo the setting by clearing the
filters
property.
■
To apply filters to BitmapData instances, use the
BitmapData.applyFilter()
method.
Calling
applyFilter
on a BitmapData object takes the source BitmapData object and
the filter object and generates a filtered image.
You can also apply filter effects to images and video at authoring time. For more information,
see your authoring documentation.
If you apply a filter to a movie clip or button, the
cacheAsBitmap
property of the movie clip
or button is set to
true
. If you clear all filters, the original value of
cacheAsBitmap
is
restored.
This filter supports stage scaling. However, it does not support general scaling, rotation, and
skewing. If the object itself is scaled (if
_xscale
and
_yscale
are not 100%), the filter is not
scaled. It is scaled only when you zoom in on the Stage.
A filter is not applied if the resulting image exceeds 2880 pixels in width or height. If, for
example, you zoom in on a large movie clip with a filter applied, the filter is turned off if the
resulting image exceeds the limit of 2880 pixels.
Availability:
ActionScript 1.0; Flash Player 8
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...