Matrix.b; Matrix.c - 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

You can rotate an object by setting the
where
and
a = d
var mat = fl.getDocumentDOM().selection[0].matrix;
mat.a = 0.5;
mat.b = 0.8;
mat.c = 0.8*(-1);
mat.d = 0.5;
fl.getDocumentDOM().selection[0].matrix = mat;
You can set
a = d = 1

matrix.b

Availability
Flash MX 2004.
Usage
matrix.b
Description
Property; a floating-point value that specifies the (0,1) element in the matrix. This value
represents the vertical skew of a shape; it causes Flash to move the shape's right edge along the
vertical axis.
The
and
matrix.b
Example
In the following example, you can set
object at a 45º vertical angle:
var mat = fl.getDocumentDOM().selection[0].matrix;
mat.b = -1;
mat.c = 0;
fl.getDocumentDOM().selection[0].matrix = mat;
To skew the object back to its original shape, you can set
See the
matrix.a

matrix.c

Availability
Flash MX 2004.
Usage
matrix.c
Description
Property; a floating-point value that specifies the (1,0) element in the matrix. This value causes
Flash to skew the object by moving its bottom edge along a horizontal axis.
The
and
matrix.b
a
. For example, values of 0.5, 0.8, -0.8, and 0.5 rotate the object 60 º :
b = -c
and
c = b = 0
properties in a matrix represent skewing.
matrix.c
and
b
example.
properties in a matrix represent skewing.
matrix.c
,
,
, and
matrix properties relative to one another,
b
c
d
to reset the object back to its original shape.
to -1 and 0, respectively; these settings skew the
c
and
b
to 0.
c
Matrix object
231

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents