User Guide
508 ActionScript classes
Method summary
Methods inherited from class BitmapFilter
Methods inherited from class Object
alpha (DisplacementMapFilter.alpha property)
public alpha : Number
Specifies the alpha transparency value to use for out-of-bounds displacements. This is
specified as a normalized value from 0.0 to 1.0. For example, .25 sets a transparency value of
25%. The default is 0. Use this property if the
mode property is set to 3, COLOR.
Availability: ActionScript 1.0; Flash Player 8
Example
The following example modifies the out-of-range
alpha property on the existing MovieClip
filteredMc to 0x00FF00 when a user clicks it.
import flash.filters.DisplacementMapFilter;
import flash.display.BitmapData;
import flash.geom.Point;
import flash.geom.Matrix;
import flash.geom.ColorTransform;
var filteredMc:MovieClip = createDisplacementMapRectangle();
filteredMc.onPress = function() {
var filter:DisplacementMapFilter = this.filters[0];
filter.scaleY = 25;
filter.mode = "color";
Modifiers Signature Description
clone() :
DisplacementMapFilte
r
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)