EasyManua.ls Logo

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE - Page 539

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
1378 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
DropShadowFilter (flash.filters.DropShadowFilter) 539
blurY:Number [optional] - The amount of vertical blur. Valid values are 0 to 255 (floating
point). The default value is 4. 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 shadow and the
background. Valid values are 0 to 255. The default is 1.
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.
inner:Boolean [optional] - Indicates whether or not the shadow is an inner shadow. A value
of
true specifies an inner shadow. The default is false, an outer shadow (a shadow around
the outer edges of the object).
knockout:Boolean [optional] - Applies a knockout effect (true), which effectively makes the
object's fill transparent and reveals the background color of the document. The default is
false (no knockout).
hideObject:Boolean [optional] - Indicates whether or not the object is hidden. A value of
true indicates that the object itself is not drawn; only the shadow is visible. The default is
false (show the object).
Example
The following example instantiates a new DropShadowFilter instance and applies it to a flat,
rectangular shape.
import flash.filters.DropShadowFilter;
var art:MovieClip = createRectangle(100, 100, 0x003366,
"gradientGlowFilterExample");
var distance:Number = 20;
var angleInDegrees:Number = 45;
var color:Number = 0x000000;
var alpha:Number = .8;
var blurX:Number = 16;
var blurY:Number = 16;
var strength:Number = 1;
var quality:Number = 3;
var inner:Boolean = false;
var knockout:Boolean = false;
var hideObject:Boolean = false;
var filter:DropShadowFilter = new DropShadowFilter(distance,
angleInDegrees,
color,
alpha,
blurX,

Table of Contents

Related product manuals