User Guide

244 Chapter 5: Fireworks JavaScript API
fw.chooseBrowser()
Availability
Fireworks MX.
Usage
fw.chooseBrowser(primaryBrowser)
Arguments
primaryBrowser
A Boolean value that indicates which browser to select. If primaryBrowser is
true, Fireworks prompts the user to set the primary browser; if the argument is false, Fireworks
prompts the user to set the secondary browser.
Returns
Nothing.
Description
Displays a dialog box that lets the user select a primary or secondary browser.
fw.chooseScriptTargetDialog()
Availability
Fireworks 4.
Usage
fw.chooseScriptTargetDialog(formatlist)
Arguments
formatlist
A list of target documents for an operation. Its use is similar to that in
fw.locateDocDialog(), except that formatlist is required, and you cannot specify a
maximum number of documents
Returns
An array of file://URLs, or null if the dialog box is canceled.
Description
Displays a dialog box that lets the user choose the target documents for an operation. The
dialog box lets the user specify currently open files, files in the project list, or files that are
explicitly selected.
See also
fw.locateDocDialog()