Parameters
An optional parameter that, if
bOkToSaveAs
opens the Save As dialog box. If
default value is
.
true
Returns
A Boolean value:
true
otherwise.
Description
Method; saves and compacts the file. This method is equivalent to selecting File > Save and
Compact.
If the file has never been saved, this method returns true even if the user cancels the
Save As dialog box. To allow an unsaved file to be saved, use fl.saveDocumentAs().
Example
The following example saves and compacts the current document:
fl.getDocumentDOM().saveAndCompact();
See also
,
document.save()
fl.saveDocumentAs()
document.scaleSelection()
Availability
Flash MX 2004.
Usage
document.scaleSelection( xScale, yScale [, whichCorner] )
Parameters
A floating-point value that specifies the amount of x by which to scale.
xScale
A floating-point value that specifies the amount of y by which to scale.
yScale
A string value that specifies the edge about which the transformation occurs.
whichCorner
If omitted, scaling occurs about the transformation point. Acceptable values are:
,
left"
"bottom right"
, and
"bottom center"
and the file was never saved, the file is not saved. The
false
if the save-and-compact operation completes successfully;
,
,
,
"top right"
"top left"
. This parameter is optional.
"left center"
or omitted and the file was never saved,
true
fl.saveDocument()
,
"top center"
false
,
fl.saveAll()
"bottom
,
"right center"
Document object
,
139
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?
Questions and answers