MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference page 835

Actionscript 2.0 language reference
Table of Contents

Advertisement

with (gradient_mc)
{
colors = [0xFF0000, 0x0000FF];
fillType = "radial"
alphas = [100, 100];
ratios = [0, 0xFF];
spreadMethod = "reflect";
interpolationMethod = "linearRGB";
focalPointRatio = 0.9;
matrix = new Matrix();
matrix.createGradientBox(100, 100, Math.PI, 0, 0);
beginGradientFill(fillType, colors, alphas, ratios, matrix,
spreadMethod, interpolationMethod, focalPointRatio);
moveTo(100, 100);
lineTo(100, 300);
lineTo(300, 300);
lineTo(300, 100);
lineTo(100, 100);
endFill();
}
This code draws the following image onscreen:
You can use the properties
3 matrix of the following form:
a b c
d e f
g h i
For Flash Player 8 and later, Macromedia recommends that you define the matrix
parameter in the form of a
the list).
The following example uses the
of this type:
this.createEmptyMovieClip("gradient_mc",
this.getNextHighestDepth());
with (gradient_mc)
{
,
,
,
,
,
,
,
, and
a
b
c
d
e
f
g
h
flash.geom.Matrix
beginGradientFill()
, which can be used to describe a 3 x
i
object (as described in the first item in
method with a
matrix
parameter
MovieClip
835

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