User Guide

Matrix (flash.geom.Matrix) 763
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.
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.
Transformation Method Matrix values Display result Description
Translation
(displacement)
translate(tx, ty) Moves the
image
tx pixels
to the right and
ty pixels down.
Scaling
scale(sx, sy) Resizes the
image,
multiplying the
location of
each pixel by
sx on the x axis
and
sy on the y
axis.
Rotation
rotate(q) Rotates the
image by an
angle
q, which
is measured in
radians
Skewing or
shearing
None; must set the
properties
b and c.
Progressively
slides the
image in a
direction
parallel to the x
or y axis. The
value
skx acts
as a multiplier
controlling the
sliding distance
along the x
axis;
sky
controls the
sliding distance
along the y
axis.