The DisplayObjectTransformer application files can be found in the folder Samples/
DisplayObjectTransformer. The application consists of the following files:
File
DisplayObjectTransformer.mxml
com/example/programmingas3/geometry/
MatrixTransformer.as
img/
Defining the MatrixTransformer class
The MatrixTransformer class includes static methods that apply geometric transformations of
Matrix objects.
The transform() method
The
method includes parameters for each of the following:
transform()
—The input matrix, which the method transforms
■
sourceMatrix
and
xScale
yScale
■
and
—The x and y translation amounts, in pixels
dx
dy
■
—The rotation amount, in degrees
■
rotation
—The skew factor, as a percentage
skew
■
—The direction in which the skew, either
skewType
■
The return value is the resulting matrix.
The
method calls the following static methods of the class:
transform()
■
skew()
■
scale()
translate()
■
■
rotate()
Each returns the source matrix with the applied transformation.
430
Working with Geometry
—The x and y scale factor
Description
The main application file in MXML for Flex.
A class that contains methods for applying
matrix transformations.
A directory containing sample image files used
by the application.
or
"right"
"left"
Need help?
Do you have a question about the FLEX 2-PROGRAMMING ACTIONSCRIPT 3.0 and is the answer not in the manual?
Questions and answers