03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Method summary<br />

Modifiers Signature Description<br />

Methods inherited from class BitmapFilter<br />

Methods inherited from class Object<br />

alphas (GradientGlowFilter.alphas property)<br />

public alphas : Array<br />

An array of alpha transparency values for the corresponding colors in the colors array. Valid<br />

values for each element in the array are 0 to 1. For example, .25 sets the alpha transparency<br />

value to 25%.<br />

The alphas property cannot be changed by directly modifying its values. Instead, you must<br />

get a reference to alphas, make the change to the reference, <strong>and</strong> then set alphas to the<br />

reference.<br />

The colors, alphas, <strong>and</strong> ratios properties are all related. The first element in the colors<br />

array corresponds to the first element in the alphas array <strong>and</strong> in the ratios array, <strong>and</strong> so on.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 8<br />

Example<br />

The following example changes the alphas property on an existing movie clip when a user<br />

clicks it.<br />

import flash.filters.GradientGlowFilter;<br />

var mc:MovieClip = createGradientGlowRectangle("GlowAlphas");<br />

mc.onRelease = function() {<br />

644 <strong>ActionScript</strong> classes<br />

clone() :<br />

GradientGlowFilter<br />

clone (BitmapFilter.clone method)<br />

Returns a copy of this filter object.<br />

addProperty (Object.addProperty method), hasOwnProperty<br />

(Object.hasOwnProperty method), isPropertyEnumerable<br />

(Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf<br />

method), registerClass (Object.registerClass method), toString<br />

(Object.toString method), unwatch (Object.unwatch method), valueOf<br />

(Object.valueOf method), watch (Object.watch method)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!