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
A string, expressed as a file:/// URI, that specifies the filename for the exported
fileURI
file. If
is an empty string or is not specified, Flash displays the Export Movie dialog
fileURI
box.
bCurrentPNGSettings
publish settings (
true
optional. The default value is
A Boolean value that specifies whether to export only the current frame
bCurrentFrame
(
) or to export all frames, with each frame a separate PNG file (
true
optional. The default value is
Returns
A Boolean value of
true
Description
Method; exports the document as one or more PNG files. If
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);
A Boolean value that specifies whether to use the current PNG
) or to display the Export PNG dialog box (
.
false
.
false
if the file is successfully exported as a PNG file;
). This parameter is
false
). This parameter is
false
otherwise.
false
is specified and the file
fileURI
Document object
105
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?
Questions and answers