Example
The following example reverts the current document to the previously saved version:
fl.getDocumentDOM().revert();
document.rotateSelection()
Availability
Flash MX 2004.
Usage
document.rotateSelection( angle [, rotationPoint] )
Parameters
A floating point value that specifies the angle of the rotation.
angle
rotationPoint
are:
"top right"
,
center"
"bottom center"
transformation point. This parameter is optional.
Returns
Nothing.
Description
Method; rotates the selection by a specified amount. The effect is the same as using the Free
Transform tool to rotate the object.
Example
The following example rotates the selection by 45º around the transformation point:
flash.getDocumentDOM().rotateSelection(45);
The following example rotates the selection by 45º around the lower left corner:
fl.getDocumentDOM().rotateSelection(45, "bottom left");
document.save()
Availability
Flash MX 2004.
Usage
document.save( [bOkToSaveAs] )
Parameters
bOkToSaveAs
Save As dialog box appears . If
A string that specifies which side of the bounding box to rotate. Valid values
,
,
"top left"
"bottom right"
, and
"left center"
An optional parameter that, if
and the file was never saved, the file is not saved.
false
,
,
"bottom left"
. If unspecified, the method uses the
or omitted, and the file was never saved, the
true
,
"top center"
"right
Document object
109
Need help?
Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?
Questions and answers