Method summary
Modifiers
Signature
clone() :
DisplacementMapFilte
r
Methods inherited from class BitmapFilter
clone (BitmapFilter.clone method)
Methods inherited from class Object
addProperty (Object.addProperty
(Object.hasOwnProperty
(Object.isPropertyEnumerable
method),
registerClass (Object.registerClass
(Object.toString
(Object.valueOf
method),
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
Availability: ActionScript 1.0; Flash Player 8
Example
The following example modifies the out-of-range
to
filteredMc
0x00FF00
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";
508
ActionScript classes
Description
Returns a copy of this filter object.
method),
method),
isPropertyEnumerable
method),
method),
unwatch (Object.unwatch
watch (Object.watch method)
when a user clicks it.
hasOwnProperty
isPrototypeOf (Object.isPrototypeOf
method),
toString
method),
property is set to
mode
property on the existing MovieClip
alpha
valueOf
.
3, COLOR
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?