User Guide

346 Fireworks JavaScript API
Returns
Nothing.
Description
Writes out the panel states (location, size, open or closed, and so on), toolbox state, and
Property inspector state to an XML file that is specified by the argument.
fw.yesNoDialog()
Availability
Fireworks MX.
Usage
fw.yesNoDialog(promptString)
Arguments
promptString The prompt message that appears in the dialog box.
Returns
A Boolean value: true if the user selected the Yes button; false otherwise.
Description
Displays a dialog box that contains buttons labeled Yes and No.
Example
The following code displays a dialog box with Yes and No buttons and the message “Would
you like to duplicate the element?”
var shouldDuplicate = fw.yesNoDialog("Would you like to duplicate the
element?");