MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 137

Extending flash
Table of Contents

Advertisement

Description
Method; reverts the specified document to its previously saved version. This method is
equivalent to selecting File > Revert.
Example
The following example reverts the current document to the previously saved version:
fl.getDocumentDOM().revert();
See also
,
document.canRevert()
fl.revertDocument()
document.rotateSelection()
Availability
Flash MX 2004.
Usage
document.rotateSelection( angle [, rotationPoint] )
Parameters
A floating-point value that specifies the angle of the rotation.
angle
A string that specifies which side of the bounding box to rotate. Acceptable
rotationPoint
values are
,
,
,
,
,
"top right"
"top left"
"bottom right"
"bottom left"
"top center"
,
, and
. If unspecified, the method uses
"right center"
"bottom center"
"left center"
the transformation point. This parameter is optional.
Returns
Nothing.
Description
Method; rotates the selection by a specified number of degrees. 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 object
137

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents