The Matrix class supports the four major types of transformation functions: translation,
scaling, rotation, and skewing. There are specialized methods for three of these functions, as
described in the following table.
Transformation
Method
Translation
translate(tx, ty)
(displacement)
Scaling
scale(sx, sy)
Rotation
rotate(q)
Skewing or
None; must set the
shearing
properties
Each transformation function alters the current matrix properties so that you can effectively
combine multiple transformations. To do this, you call more than one transformation
function before applying the matrix to its movie clip or bitmap target.
Matrix values
and
.
b
c
Display result
Description
Moves the
image
to the right and
pixels down.
ty
Resizes the
image,
multiplying the
location of
each pixel by
on the x axis
sx
and
sy
axis.
Rotates the
image by an
angle
is measured in
radians
Progressively
slides the
image in a
direction
parallel to the x
or y axis. The
value
as a multiplier
controlling the
sliding distance
along the x
axis;
sky
controls the
sliding distance
along the y
axis.
Matrix (flash.geom.Matrix)
pixels
tx
on the y
, which
q
acts
skx
763
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?