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

  • 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 119
98
EXTENDING FLASH PROFESSIONAL
Document object
Last updated 5/2/2011
Description
Method; exits from symbol-editing mode and returns focus to the next level up from the editing mode. For example,
if you are editing a symbol inside another symbol, this method takes you up a level from the symbol you are editing,
into the parent symbol.
Example
The following example exits symbol-editing mode:
fl.getDocumentDOM().exitEditMode();
See also
document.enterEditMode()
document.exportPNG()
Availability
Flash 8.
Usage
document.exportPNG([fileURI [, bCurrentPNGSettings [, bCurrentFrame]]])
Parameters
fileURI A string, expressed as a file:/// URI, that specifies the filename for the exported file. If fileURI is an empty
string or is not specified, Flash displays the Export Movie dialog box.
bCurrentPNGSettings A Boolean value that specifies whether to use the current PNG publish settings (true) or to
display the Export PNG dialog box (
false). This parameter is optional. The default value is false.
bCurrentFrame A Boolean value that specifies whether to export only the current frame (true) or to export all
frames, with each frame as a separate PNG file (
false). This parameter is optional. The default value is false.
Returns
A Boolean value of true if the file is successfully exported as a PNG file; false otherwise.
Description
Method; exports the document as one or more PNG files. If fileURI is specified and the file already exists, it is
overwritten without warning.
Example
The following example exports the current frame in the current document to myFile.png, using the current PNG
publish settings:
fl.getDocumentDOM().exportPNG("file:///C|/myProject/myFile.png", true, true);
Zobrazit stránku 119
1 2 ... 115 116 117 118 119 120 121 122 123 124 125 ... 564 565

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

Žádné komentáře