
606
ActionScript classes
rect.beginFill(0x003366);
rect.lineTo(w, 0);
rect.lineTo(w, h);
rect.lineTo(0, h);
rect.lineTo(0, 0);
rect._x = 20;
rect._y = 20;
var filter:GlowFilter = new GlowFilter(0x000000, .8, 16, 16, 1, 3, false,
false);
var filterArray:Array = new Array();
filterArray.push(filter);
rect.filters = filterArray;
return rect;
}
GlowFilter constructor
public GlowFilter([color:Number], [alpha:Number], [blurX:Number],
[blurY:Number], [strength:Number], [quality:Number], [inner:Boolean],
[knockout:Boolean])
Initializes a new GlowFilter instance with the specified parameters.
Availability:
ActionScript 1.0; Flash Player 8
Parameters
color
:Number
[optional] - The color of the glow, in the hexadecimal format 0x
RRGGBB
.
The default value is 0xFF0000.
alpha
:Number
[optional] - The alpha transparency value for the color. Valid values are 0 to 1.
For example, .25 sets a transparency value of 25%. The default value is 1.
blurX
:Number
[optional] - The amount of horizontal blur. Valid values are 0 to 255 (floating
point). The default value is 6. Values that are a power of 2 (such as 2, 4, 8, 16 and 32) are
optimized to render more quickly than other values.
blurY
:Number
[optional] - The amount of vertical blur. Valid values are 0 to 255 (floating
point). The default value is 6. Values that are a power of 2 (such as 2, 4, 8, 16 and 32) are
optimized to render more quickly than other values.
strength
:Number
[optional] - The strength of the imprint or spread. The higher the value,
the more color is imprinted and the stronger the contrast between the glow and the
background. Valid values are 0 to 255. The default is 2.
quality
:Number
[optional] - The number of times to apply the filter. Valid values are 0 to
15. The default value is 1, which is equivalent to low quality. A value of 2 is medium quality,
and a value of 3 is high quality.
Содержание FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Страница 1: ...ActionScript 2 0 Language Reference ...
Страница 1352: ...1352 ActionScript classes ...