Document.rotate3dselection(), Document.rotateselection() – Adobe Extending Flash Professional CS4 User Manual
Page 155
133
EXTENDING FLASH CS4 PROFESSIONAL
Document object
Description
Method; if the file can be reverted, displays a dialog box to let the user confirm that the file should be reverted. If the
user confirms, this method reverts the file to the version stored on the Version Cue server and logs any errors to the
Output panel.
Example
The following example reverts the current document to the version stored on the Version Cue server:
fl.getDocumentDOM().revertToLastVersion();
See also
document.synchronizeWithHeadVersion()
,
fl.revertDocumentToLastVersion()
document.rotate3DSelection()
Availability
Flash CS4 Professional.
Usage
document.rotate3DSelection(xyzCoordinate, bGlobalTransform)
Parameters
xyzCoordinate
An XYZ coordinate point that specifies the axes for 3D rotation.
bGlobalTransform
A Boolean value that specifies whether the transformation mode should be global (
true
) or local
(
false
).
Returns
Nothing.
Description
Method: applies a 3D rotation to the selection. This method is available only for movie clips.
Example
In the following example, the selection is first rotated relative to the stage (globally) and then relative to itself (locally).
var myDocument = fl.getDocumentDOM();
myDocument.rotate3DSelection({x:52.0, y:0, z:0}, true);
myDocument.rotate3DSelection({x:52.0, y:0, z:-55.2}, false);
document.rotateSelection()
Availability
Flash MX 2004.