Extending Flash |
|
|
|
| Objects > Document object > document.transformSelection() | |||
Flash MX 2004.
document.transformSelection(a,b,c,d)
a A floating-point number that specifies the (0,0) element of the transformation matrix.
b A floating-point number that specifies the (0,1) element of the transformation matrix.
c A floating-point number that specifies the (1,0) element of the transformation matrix.
d A floating-point number that specifies the (1,1) element of the transformation matrix.
Nothing.
Method; performs a general transformation on the current selection by applying the matrix specified in the arguments. For more information, see the element.matrix property.
The following example stretches the selection by a factor of 2 in the x direction:
fl.getDocumentDOM().transformSelection(2.0, 0.0, 0.0, 1.0);
|
|
|
|