User Guide

Fireworks functions 251
Returns
A Boolean value: true if successful; false otherwise.
Description
Exports one image if the document contains no slice objects and multiple images if the document
contains one or more slice objects. It also optionally exports HTML. The document is exported
using the current export settings and export options.
Example
The following command exports the current document as HTML and as one or more images.
fw.exportHtmlAndImages(null, "file:///C|/mysite/nav.htm", "file:///C|/mysite/
images/nav.gif");
See also
fw.exportDocumentAs()
fw.exportIllustrator()
Availability
Fireworks MX.
Usage
fw.exportIllustrator(document, fileURL)
Arguments
document
A Document object, for example, fw.documents[2], that specifies the document to
export. If
document is null, the active document is exported.
fileURL Specifies the filename for the exported file. If fileURL is null, Fireworks displays the
Export dialog box.
Returns
A Boolean value: true if successful; false otherwise.
Description
Exports the specified document to the specified file in Adobe Illustrator format.
fw.exportLayers()
Availability
Fireworks 4.
Usage
fw.exportLayers(docObject, directoryURL)