User Guide
460 ActionScript classes
Method summary
Methods inherited from class BitmapFilter
Methods inherited from class Object
alpha (ConvolutionFilter.alpha property)
public alpha : Number
The alpha transparency value of the substitute color. Valid values are 0 to 1.0. The default is 0.
For example, .25 sets a transparency value of 25 percent. The default is 1.0.
Availability: ActionScript 1.0; Flash Player 8
Example
The following example changes the
alpha property of filter from its default value of 1 to
.35.
import flash.filters.ConvolutionFilter;
import flash.display.BitmapData;
import flash.geom.Rectangle;
import flash.geom.Point;
var alpha:Number = .35;
var filter:ConvolutionFilter = new ConvolutionFilter(3, 3, [1, 1, 1, 1, 1,
1, 1, 1, 1], 9, 0, true, false, 0x0000FF, alpha);
var myBitmapData:BitmapData = new BitmapData(100, 80, true, 0xCCFF0000);
var mc:MovieClip = this.createEmptyMovieClip("mc",
this.getNextHighestDepth());
mc.attachBitmap(myBitmapData, this.getNextHighestDepth());
Modifiers Signature Description
clone() :
ConvolutionFilter
Returns a copy of this filter object.
clone (BitmapFilter.clone method)
addProperty (Object.addProperty method), hasOwnProperty
(Object.hasOwnProperty method), isPropertyEnumerable
(Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf
method), registerClass (Object.registerClass method), toString
(Object.toString method), unwatch (Object.unwatch method), valueOf
(Object.valueOf method), watch (Object.watch method)