User Guide
148 Chapter 5: Fireworks JavaScript API
Returns
true
if the file is read successfully; false if the file is not the expected format or is not read
successfully for any other reason.
Description
Replaces the values in dom.exportOptions.paletteEntries with those in the specified GIF or
ACT file. This function also sets
dom.exportOptions.paletteMode to "custom". For more
information, see “ExportOptions object” on page 46.
dom.exportOptions.saveColorPalette()
Availability
Fireworks 3.
Usage
dom.exportOptions.saveColorPalette(fileURL)
Arguments
fileURL
A string, which is expressed as a file://URL, that specifies the name of the file to
which the color panel should be saved. Do not specify a file extension; the .act extension is
added automatically.
Returns
Nothing.
Description
Saves the values in dom.exportOptions.paletteEntries to the specified color panel (ACT
file). This function does not modify the document. For more information, see “ExportOptions
object” on page 46.
dom.exportTo()
Availability
Fireworks 3.
Usage
dom.exportTo(fileURL, {exportOptions})
Arguments
fileURL
A string, which is expressed as a file://URL, that specifies the name of the
exported file.
exportOptions An ExportOptions object (see “ExportOptions object” on page 46). This
argument is optional. If this argument is omitted or
null, the document’s current Export
Options settings are used. If values are passed in with
exportOptions, they are used for
this export operation only; they do not change the document’s exportOptions property.