Tx (Matrix.tx Property); Ty (Matrix.ty Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

Example
The following example uses the
y:50. The
translate()
affect the
,
,
, or
a
b
c
d
import flash.geom.Matrix;
var myMatrix:Matrix = new Matrix(2, 0, 0, 2, 100, 100);
trace(myMatrix.toString()); // (a=2, b=0, c=0, d=2, tx=100, ty=100)
myMatrix.translate(100, 50);
trace(myMatrix.toString()); // (a=2, b=0, c=0, d=2, tx=200, ty=150)

tx (Matrix.tx property)

public tx : Number
The distance by which to translate each point along the x axis. This represents the value in the
third row and first column of the Matrix object.
Availability: ActionScript 1.0; Flash Player 8
Example
The following example creates the Matrix object
import flash.geom.Matrix;
var myMatrix:Matrix = new Matrix();
trace(myMatrix.tx); // 0
myMatrix.tx = 50; // 50
trace(myMatrix.tx);

ty (Matrix.ty property)

public ty : Number
The distance by which to translate each point along the y axis. This represents the value in the
third row and second column of the Matrix object.
Availability: ActionScript 1.0; Flash Player 8
Example
The following example creates the Matrix object
import flash.geom.Matrix;
var myMatrix:Matrix = new Matrix();
translate()
method affects the translation properties
properties.
method to position
rectangleMc
tx
and sets its
myMatrix
and sets its
myMatrix
Matrix (flash.geom.Matrix)
x:100 and
and
, but it doesn't
ty
value.
tx
value.
ty
783

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?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF