Extending Flash |
|
|
|
| Objects > Document object > document.setTransformationPoint() | |||
Flash MX 2004.
document.setTransformationPoint( transformationPoint )
transformationPoint A point (for example, {x:10, y:20}, where x and y are floating-point numbers) that specifies values for the transformation point of each of the following elements:
transformationPoint is set relative to the document (0,0 is the upper-left corner of the Stage).transformationPoint is set relative to the symbol's registration point (0,0 is located at the registration point). transformationPoint is set relative to the text field (0,0 is the upper-left corner of text field).transformationPoint is set relative to the bitmap/video (0,0 is the upper-left corner of the bitmap or video). transformationPoint is set relative to the document (0,0 is the upper-left corner of the Stage). To set transformationPoint relative to the center point of the object, primitive, or group, use element.setTransformationPoint().Nothing.
Method; sets the position of the current selection's transformation point.
The following example sets the transformation point of the current selection to 100, 200:
fl.getDocumentDOM().setTransformationPoint({x:100, y:200});
document.getTransformationPoint(), element.setTransformationPoint()
|
|
|
|