|
|
document.exportPNG()
Usagedocument.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.
ReturnsA Boolean
value of true if the file is successfully exported
as a PNG file; false otherwise.
DescriptionMethod;
exports the document as one or more PNG files. If fileURI is specified
and the file already exists, it is overwritten without warning.
ExampleThe
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);
|