User Guide

Fireworks functions 249
Returns
A Boolean value: true if successful; false otherwise.
Description
Exports the specified document to the specified file as layers to be imported into
Macromedia Director.
fw.exportDirectorAsSlices()
Availability
Fireworks MX.
Usage
fw.exportDirectorAsSlices(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 as Macromedia Director images.
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 46). 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.