Alpha (Dropshadowfilter.alpha Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

Method summary
Modifiers
Signature
clone() :
DropShadowFilter
Methods inherited from class BitmapFilter
clone (BitmapFilter.clone method)
Methods inherited from class Object
addProperty (Object.addProperty
(Object.hasOwnProperty
(Object.isPropertyEnumerable
method),
registerClass (Object.registerClass
(Object.toString
(Object.valueOf
method),

alpha (DropShadowFilter.alpha property)

public alpha : Number
The alpha transparency value for the shadow color. Valid values are 0 to 1. For example, .25
sets a transparency value of 25%. The default value is 1.
Availability: ActionScript 1.0; Flash Player 8
Example
The following example changes the
import flash.filters.DropShadowFilter;
var mc:MovieClip = createDropShadowRectangle("DropShadowAlpha");
mc.onRelease = function() {
var filter:DropShadowFilter = this.filters[0];
filter.alpha = .4;
this.filters = new Array(filter);
}
function createDropShadowRectangle(name:String):MovieClip {
var art:MovieClip = this.createEmptyMovieClip(name,
this.getNextHighestDepth());
var w:Number = 100;
var h:Number = 100;
art.beginFill(0x003366);
art.lineTo(w, 0);
art.lineTo(w, h);
Description
Returns a copy of this filter object.
method),
method),
isPropertyEnumerable
method),
method),
unwatch (Object.unwatch
watch (Object.watch method)
alpha
hasOwnProperty
isPrototypeOf (Object.isPrototypeOf
method),
method),
property on a movie clip when a user clicks it.
DropShadowFilter (flash.filters.DropShadowFilter)
toString
valueOf
531

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF