Document object
139
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. The
default value is
true
.
Returns
A Boolean value:
true
if the save-and-compact operation completes successfully;
false
otherwise.
Description
Method; saves and compacts the file. This method is equivalent to selecting File > Save and
Compact.
Example
The following example saves and compacts the current document:
fl.getDocumentDOM().saveAndCompact();
See also
document.save()
,
fl.saveDocumentAs()
,
fl.saveDocument()
,
fl.saveAll()
document.scaleSelection()
Availability
Flash MX 2004.
Usage
document.scaleSelection(
xScale
,
yScale
[,
whichCorner
] )
Parameters
xScale
A floating-point value that specifies the amount of
x
by which to scale.
yScale
A floating-point value that specifies the amount of
y
by which to scale.
whichCorner
A string value that specifies the edge about which the transformation occurs.
If omitted, scaling occurs about the transformation point. Acceptable values are:
"bottom
left"
,
"bottom right"
,
"top right"
,
"top left"
,
"top center"
,
"right center"
,
"bottom center"
, and
"left center"
. This parameter is optional.
NO
TE
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()
.
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...