644
ActionScript classes
type
:String
[optional] - The placement of the filter effect. Possible values are:
■
"outer"
: Glow on the outer edge of the object
■
"inner"
: Glow on the inner edge of the object; the default
■
"full"
: Glow on top of the object
The default value is
"inner"
.
knockout
:Boolean
[optional] - Specifies whether the object has a knockout effect. A
knockout effect makes the object's fill transparent and reveals the background color of the
document. The value
true
specifies a knockout effect; the default is
false
(no knockout
effect).
Example
The following example creates a gradient glow filter, assigns its values, and applies it to a flat
rectangle image.
import flash.filters.GradientGlowFilter;
var art:MovieClip = createRectangle(100, 100, 0x003366,
"gradientGlowFilterExample");
var distance:Number = 0;
var angleInDegrees:Number = 45;
var colors:Array = [0xFFFFFF, 0xFF0000, 0xFFFF00, 0x00CCFF];
var alphas:Array = [0, 1, 1, 1];
var ratios:Array = [0, 63, 126, 255];
var blurX:Number = 50;
var blurY:Number = 50;
var strength:Number = 2.5;
var quality:Number = 3;
var type:String = "outer";
var knockout:Boolean = false;
var filter:GradientGlowFilter = new GradientGlowFilter(distance,
angleInDegrees,
colors,
alphas,
ratios,
blurX,
blurY,
strength,
quality,
type,
knockout);
var filterArray:Array = new Array();
filterArray.push(filter);
art.filters = filterArray;
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...