User Guide

248 Chapter 5: Fireworks JavaScript API
Arguments
None.
Returns
Nothing.
Description
Turns on debugging messages for Flash commands. When Flash debugging is enabled, Fireworks
displays the command string in a dialog box every time a Flash command calls
MMExecute(). The
fw.enableFlashDebugging() function is particularly useful for monitoring which commands
are executed in a command panel. See fw.disableFlashDebugging()” on page 247 for details on
how to turn off Flash debugging. See “Flash panels” on page 90 for more information about
constructing Flash command panels for Fireworks.
Note: This debugging command works even if you are running a JavaScript file.
fw.exportAndCopyHTMLCode()
Availability
Fireworks MX.
Usage
fw.exportAndCopyHTMLCode(document)
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.
Returns
A Boolean value: true if successful; false otherwise.
Description
Displays the export dialog box, which is preconfigured to export HTML and images and to copy
the HTML code to the Clipboard.
fw.exportDirectorAsLayers()
Availability
Fireworks MX.
Usage
fw.exportDirectorAsLayers(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.