User Guide

Fireworks functions 261
formatlist A list of acceptable file types to open. The formatlist argument is an array of
strings such as the ones shown in the following example:
["formatname1","formatname2","formatname3",…"formatnameN"]
The following table lists acceptable values for formatname and the file type each value represents.
Returns
An array of file:// URLs, or null if the dialog box is canceled.
Description
Displays a dialog box that lets the user select one or more files.
fw.openDocument()
Availability
Fireworks 3, enhanced in 4.
Usage
fw.openDocument({fileURL}, {bOpenAsNew})
Arguments
fileURl
A string or an array of strings, each expressed as a file://URL, that specifies the files to
be opened. This argument is optional. If
fileURL is omitted or null, the Open Document dialog
box appears.
bOpenAsNew If bOpenAsNew, which was added in Fireworks 4, is true, the files are opened as
unsaved and untitled documents. If
bOpenAsNew is false (the default value), they are opened
with their original names. This argument is optional.
Value File type
"ADOBE AI3"
Adobe Illustrator
"Fireworks JavaScript"
Fireworks JSF
"kMoaCfFormat_BMP"
Bitmap
"kMoaCfFormat_FreeHand7and8"
Macromedia FreeHand
7 or 8
"kMoaCfFormat_GIF"
GIF
"kMoaCfFormat_JPEG"
JPEG
"kMoaCfFormat_PICT"
Macintosh PICT
"kMoaCfFormat_RTF"
Rich text
"kMoaCfFormat_Text"
Plain text
"kMoaCfFormat_TIFF"
TIFF
"PNG"
PNG
"PS30"
Photoshop PSD