Document.save() – Adobe Extending Flash Professional CS5 User Manual
Page 155
133
EXTENDING FLASH PROFESSIONAL
Document object
Last updated 5/2/2011
rotationPoint
A string that specifies which side of the bounding box to rotate. Acceptable values are
"top right"
,
"top left"
,
"bottom right"
,
"bottom left"
,
"top center"
,
"right center"
,
"bottom center"
, and
"left
center"
. If unspecified, the method uses 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:
fl.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
An optional parameter that, if
true
or omitted, and the file was never saved, opens the Save As dialog
box. If
false
and the file was never saved, the file is not saved.
Returns
A Boolean value:
true
if the save operation completes successfully;
false
otherwise.
Description
Method; saves the document in its default location. This method is equivalent to selecting File > Save.
To specify a name for the file (instead of saving it with the same name), use
.
Note: If the file is new and has not been modified or saved, or if the file has not been modified since the last time it was
saved, this method has no effect and
false
is returned. To allow an unsaved or unmodified file to be saved, use
.
Example
The following example saves the current document in its default location:
fl.getDocumentDOM().save();