Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 655 Bytes

File metadata and controls

25 lines (15 loc) · 655 Bytes

element.matrix

Availability

Flash MX 2004.

Usage

element.matrix

Description

Property; a Matrix object. A matrix has properties a, b, c, d, tx, and ty. The a, b, c, and d properties are floating-point values; the tx and ty properties are coordinates. See Matrix 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;