Matrix Object; Matrix.a - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

Matrix object

Availability
Flash MX 2004.
Description
The Matrix object represents a transformation matrix.
Property summary for the Matrix object
The following properties are available for the Matrix object:
Property

matrix.a

matrix.b
matrix.c
matrix.d
matrix.tx
matrix.ty
matrix.a
Availability
Flash MX 2004.
Usage
matrix.a
Description
Property; a floating-point value that specifies the (0,0) element in the transformation matrix. This
value represents the scale factor of the object's x-axis.
Example
The
and
properties in a matrix represent scaling. In the following example, the values are set
a
d
to 2 and 3, respectively, to scale the selected object to two times its width and three times its
height:
var mat = fl.getDocumentDOM().selection[0].matrix;
mat.a = 2;
mat.d = 3;
fl.getDocumentDOM().selection[0].matrix = mat;
230
Chapter 3: Objects
Description
Property; a floating-point value that specifies the (0,0) element in the
transformation matrix.
Property; a floating-point value that specifies the (0,1) element in the matrix.
Property; a floating-point value that specifies the (1,0) element in the matrix.
Property; a floating-point value that specifies the (1,1) element in the matrix.
Property; a floating-point value that specifies the x-axis location of a symbol's
registration point or the center of a shape.
Property; a floating-point value that specifies the y-axis location of a symbol's
registration point or the center of a shape.
CHAPTER 3
Objects

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents