User Guide
536 ActionScript classes
// >> hideObject: false
// >> strength: 1
// >> blurY: 16
// >> blurX: 16
// >> knockout: false
// >> inner: false
// >> quality: 3
// >> alpha: 0.8
// >> color: 0
// >> angle: 45
// >> distance: 15
}
To further demonstrate the relationships between filter_1, filter_2, and clonedFilter,
the following example modifies the
knockout property of filter_1. Modifying knockout
demonstrates that the
clone() method creates a new instance based on the values of
filter_1 instead of pointing to them in reference.
import flash.filters.DropShadowFilter;
var filter_1:DropShadowFilter = new DropShadowFilter(15, 45, 0x000000, .8,
16, 16, 1, 3, false, false, false);
var filter_2:DropShadowFilter = filter_1;
var clonedFilter:DropShadowFilter = filter_1.clone();
trace(filter_1.knockout); // false
trace(filter_2.knockout); // false
trace(clonedFilter.knockout); // false
filter_1.knockout = true;
trace(filter_1.knockout); // true
trace(filter_2.knockout); // true
trace(clonedFilter.knockout); // false
color (DropShadowFilter.color property)
public color : Number
The color of the shadow. Valid values are in hexadecimal format 0xRRGGBB. The default
value is 0x000000.
Availability: ActionScript 1.0; Flash Player 8
Example
The following example changes the
color property on an existing movie clip when a user
clicks it.
import flash.filters.DropShadowFilter;