User Guide

66 Chapter 5: Fireworks Integration
// got a valid response!
alert("Nice to meet you, " + response);
window.close();
}
doneFlag = true;
}
}
}
FWLaunch.mayLaunchFireworks()
Availability
Dreamweaver 2, Fireworks 2.
Description
This function determines whether it is possible to open a Fireworks optimization session.
Arguments
None.
Returns
A Boolean value that indicates whether the platform is Windows or the Macintosh; if it is the
Macintosh, the value indicates if another Fireworks optimization session is already running.
FWLaunch.optimizeInFireworks()
Availability
Dreamweaver 2, Fireworks 2.
Description
This function opens a Fireworks optimization session for the specified image.
Arguments
docURL, imageURL, {targetWidth}, {targetHeight}
The docURL argument is the path to the active document, which is expressed as a file:// URL.
The imageURL argument is the path to the selected image. If the path is relative, it is relative to
the path that you specify in the docURL argument.
The targetWidth argument, which is optional, defines the width to which the image should
be resized.
The targetHeight argument, which is optional, defines the height to which the image should
be resized.
000_DW_API_Print.book Page 66 Wednesday, August 20, 2003 9:14 AM