User Guide

BlurFilter (flash.filters.BlurFilter) 333
clone (BitmapFilter.clone method)
public clone() : BitmapFilter
Returns a BitmapFilter object that is an exact copy of the original BitmapFilter object.
Availability: ActionScript 1.0; Flash Player 8
Returns
flash.filters.BitmapFilter - A BitmapFilter object.
BlurFilter (flash.filters.BlurFilter)
Object
|
+-flash.filters.BitmapFilter
|
+-flash.filters.BlurFilter
public class BlurFilter
extends BitmapFilter
The BlurFilter class lets you apply a blur visual effect to a variety of objects in Flash. A blur
effect softens the details of an image. You can produce blurs that range from a softly
unfocused look to a Gaussian blur, a hazy appearance like viewing an image through semi-
opaque glass. When the
quality property of this filter is set to 1, the result is a softly
unfocused look. When the
quality property is set to 3, it approximates a Gaussian blur filter.
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 a pp ly f ilt ers to Bit map Data 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 as a result.
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 (
_xscale and _yscale are not 100%), the filter effect is
not scaled. It is scaled only when you zoom in on the Stage.