MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference page 500

Actionscript language reference
Table of Contents

Advertisement

If a
matrixType
function fails if any of them are missing. This matrix scales, translates, rotates, and skews the
unit gradient, which is defined at (-1,-1) and (1,1).
,
matrixType
The properties indicate the following:
position relative to the registration point of the parent clip for the upper left corner of the
gradient,
is the vertical position relative to the registration point of the parent clip for the
y
upper left corner of the gradient,
and
is the rotation in radians of the gradient.
r
The following example uses a
an object with these properties.
this.createEmptyMovieClip("gradient_mc", 1);
with (gradient_mc) {
colors = [0xFF0000, 0x0000FF];
alphas = [100, 100];
ratios = [0, 0xFF];
matrix = {matrixType:"box", x:100, y:100, w:200, h:200, r:(45/
180)*Math.PI};
beginGradientFill("linear", colors, alphas, ratios, matrix);
moveTo(100, 100);
lineTo(100, 300);
lineTo(300, 300);
lineTo(300, 100);
lineTo(100, 100);
endFill();
}
If a
matrixType
required. The function fails if any of these conditions are not met.
500
Chapter 2: ActionScript Language Reference
property does not exist then the remaining parameters are all required; the
,
,
,
,
.
x
y
w
h
r
is the width of the gradient,
w
beginGradientFill()
property exists then it must equal
is the string
matrixType
method with a
and the remaining parameters are all
"box"
,
is the horizontal
x
"box"
is the height of the gradient,
h
parameter that is
matrix

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents