MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 199

Extending flash
Table of Contents

Advertisement

element.matrix
Availability
Flash MX 2004.
Usage
element.matrix
Description
Property; a Matrix object. A matrix has properties
properties are floating-point values; the
object.
Example
The following example moves the specified element by 10 pixels in x and 20 pixels in y:
var mat =
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].matrix
;
mat.tx += 10;
mat.ty += 20;
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].matrix =
mat;
element.name
Availability
Flash MX 2004.
Usage
element.name
Description
Property; a string that specifies the name of the element, normally referred to as the Instance
name. If the value of
element.elementType
tx
element.elementType
.
,
,
,
,
, and
a
b
c
d
tx
and
properties are coordinates. See
ty
is
, this property is ignored. See
"shape"
. The
,
,
, and
ty
a
b
c
d
Matrix
Element object
199

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents