Flash CS3 Documentation |
|||
| Extending Flash > Objects > flash object (fl) > fl.Math | |||
Flash MX 2004.
fl.Math
Read-only property; the Math object provides methods for matrix and point operations.
The following shows the transformation matrix of the selected object, and its inverse:
// Select an element on the Stage and then run this script.
var mat =fl.getDocumentDOM().selection[0].matrix;
for(var prop in mat){
fl.trace("mat."+prop+" = " + mat[prop]);
}
var invMat = fl.Math.invertMatrix( mat );
for(var prop in invMat) {
fl.trace("invMat."+prop+" = " + invMat[prop]);
}
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00004156.html