MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference page 539

Actionscript 2.0 language reference
Table of Contents

Advertisement

[optional] - The amount of vertical blur. Valid values are 0 to 255 (floating
blurY:Number
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.
[optional] - The strength of the imprint or spread. The higher the value,
strength:Number
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.
[optional] - The number of times to apply the filter. Valid values are 0 to
quality:Number
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.
[optional] - Indicates whether or not the shadow is an inner shadow. A value
inner:Boolean
of
specifies an inner shadow. The default is
true
the outer edges of the object).
[optional] - Applies a knockout effect (
knockout:Boolean
object's fill transparent and reveals the background color of the document. The default is
(no knockout).
false
hideObject:Boolean
indicates that the object itself is not drawn; only the shadow is visible. The default is
true
(show the object).
false
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,
[optional] - Indicates whether or not the object is hidden. A value of
angleInDegrees,
color,
alpha,
blurX,
DropShadowFilter (flash.filters.DropShadowFilter)
, an outer shadow (a shadow around
false
), which effectively makes the
true
539

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents