User Guide

262 Chapter 5: Fireworks JavaScript API
Returns
If any of the files can be opened, returns the Document object for each file. Returns null if none
of the documents can be opened.
Description
Opens the specified files in new document windows. If a file is already open, it opens again; to
avoid redundant open operations, call
findOpenDocument() first.
See also
fw.findOpenDocument()
fw.popupColorPicker()
Availability
Fireworks MX.
Usage
fw.popupColorPicker(screenLoc, initialColor, allowTransparent, forceWeb216)
Arguments
screenLoc
The location at which the dialog box appears, in the form of a point {x: float, y:
float}
(see “Point data type” on page 11 for syntax details).
initialColor The initially selected color in the dialog box, in the form #rrggbbaa (see “Color
string data type” on page 11 for syntax details).
allowTransparent A Boolean value that lets the user select a transparent color; set to true for
transparent,
false otherwise.
forceWeb216 A Boolean value that forces the chosen color to fall within the web216 panel; set
to
true to force the color change, false otherwise.
Returns
The chosen color in #rrggbbaa format (see “Color string data type” on page 11 for
syntax details).
Description
Opens the pop-up color swatches dialog box to let the user select a color.
fw.popupColorPickerOverMouse()
Availability
Fireworks MX.
Usage
fw.popupColorPickerOverMouse(initialColor, allowTransparent, forceWeb216)
Arguments
initialColor
A color string in #rrggbbaa format, which is the color initially selected in the
dialog box. (For syntax details, see “Color string data type” on page 11.)