Adobe Extending Flash Professional CS5 Uživatelský manuál Strana 156

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 565
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 155
134
EXTENDING FLASH PROFESSIONAL
Document object
Last updated 5/2/2011
See also
document.saveAndCompact(), fl.saveAll(), fl.saveDocument(), fl.saveDocumentAs()
document.saveAndCompact()
Availability
Flash MX 2004.
Usage
document.saveAndCompact([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. 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.
Note: If the file has never been saved, this method returns true even if the user cancels the Save As dialog box. To
accurately determine whether the file was saved, use
fl.saveDocumentAs().
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.
Zobrazit stránku 155
1 2 ... 151 152 153 154 155 156 157 158 159 160 161 ... 564 565

Komentáře k této Příručce

Žádné komentáře