Colors (Gradientglowfilter.colors Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

// >> distance: 0
}
To further demonstrate the relationships between
the following example below modifies the
demonstrates that the
knockout
of
instead of pointing to them in reference.
filter_1
import flash.filters.GradientGlowFilter;
var colors:Array = [0xFFFFFF, 0xFF0000, 0xFFFF00, 0x00CCFF];
var alphas:Array = [0, 1, 1, 1];
var ratios:Array = [0, 63, 126, 255];
var filter_1:GradientGlowFilter = new GradientGlowFilter(0, 45, colors,
alphas, ratios, 55, 55, 2.5, 2, "outer", false);
var filter_2:GradientGlowFilter = filter_1;
var clonedFilter:GradientGlowFilter = 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

colors (GradientGlowFilter.colors property)

public colors : Array
An array of colors that defines a gradient. For example, red is 0xFF0000, blue is 0x0000FF,
and so on.
The
property cannot be changed by directly modifying its values. Instead, you must
colors
get a reference to
colors
reference.
The
,
colors
alphas
array corresponds to the first element in the
Availability: ActionScript 1.0; Flash Player 8
640
ActionScript classes
clone()
, make the change to the reference, and then set
, and
properties are all related. The first element in the
ratios
,
filter_1
filter_2
property of
knockout
method creates a new instance based on the values
array and in the
alphas
, and
clonedFilter
. Modifying
filter_1
to the
colors
colors
array, and so on.
ratios
,

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents