User Guide

Fireworks functions 315
fw.exportDocumentAs()
Availability
Fireworks 3.
Usage
fw.exportDocumentAs(document, fileURL, exportOptions)
Arguments
document A Document object, for example, fw.documents[2], that specifies the
document to be exported. If
document is null, the active document is exported.
fileURL A string, which is expressed as a file://URL, that specifies the filename for the
exported file. If
fileURL is null, the Save As dialog box is displayed.
exportOptions An ExportOptions object (see “ExportOptions object” on page 58). If
exportOptions is null, the documents current export options are used. If the file format
specified by
exportOptions conflicts with the file format specified by fileURL, then the
extension of
fileURL is changed to match the format specified by exportOptions.
Returns
A Boolean value: true if successful; false otherwise.
Description
Exports the specified document to the specified file.
See also
fw.exportHtmlAndImages()
fw.exportFrames()
Availability
Fireworks 4.
Usage
fw.exportFrames(docObject, directoryURL)