User Guide
634 ActionScript classes
Method summary
Methods inherited from class BitmapFilter
Methods inherited from class Object
alphas (GradientGlowFilter.alphas property)
public alphas : Array
An array of alpha transparency values for the corresponding colors in the colors array. Valid
values for each element in the array are 0 to 1. For example, .25 sets the alpha transparency
value to 25%.
The
alphas property cannot be changed by directly modifying its values. Instead, you must
get a reference to
alphas, make the change to the reference, and then set alphas to the
reference.
The
colors, alphas, and ratios properties are all related. The first element in the colors
array corresponds to the first element in the
alphas array and in the ratios array, and so on.
Availability: ActionScript 1.0; Flash Player 8
Example
The following example changes the
alphas property on an existing movie clip when a user
clicks it.
import flash.filters.GradientGlowFilter;
var mc:MovieClip = createGradientGlowRectangle("GlowAlphas");
mc.onRelease = function() {
var filter:GradientGlowFilter = this.filters[0];
var alphas:Array = filter.alphas;
alphas.pop();
Modifiers Signature Description
clone() :
GradientGlowFilter
Returns a copy of this filter object.
clone (BitmapFilter.clone method)
addProperty (Object.addProperty method), hasOwnProperty
(Object.hasOwnProperty method), isPropertyEnumerable
(Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf
method), registerClass (Object.registerClass method), toString
(Object.toString method), unwatch (Object.unwatch method), valueOf
(Object.valueOf method), watch (Object.watch method)