User Guide
Document object 105
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 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);