Extending Flash |
|
|
|
| Objects > Math object > Math.concatMatrix() | |||
Flash MX 2004.
Math.concatMatrix(mat1,mat2)
mat1 and mat2 Specify the Matrix objects to be concatenated (see Matrix object). Each parameter must be an object with fields a, b, c, d, tx, and ty.
A concatenated object matrix.
Method; performs a matrix concatenation and returns the result.
The following example stores the currently selected object in the elt variable, multiplies the object matrix by the view matrix, and stores that value in the mat variable:
var elt = fl.getDocumentDOM().selection[0]; var mat = fl.Math.concatMatrix( elt.matrix , fl.getDocumentDOM().viewMatrix );
|
|
|
|