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
argument is the path to the active document, which is expressed as a file://
docURL
URL.
The
argument is the path to the selected image. If the path is relative, it is
imageURL
relative to the path that you specify in the
The
targetWidth
should be resized.
The
targetHeight
should be resized.
Returns
Zero, if a Fireworks optimization session successfully opens for the specified image; otherwise,
a nonzero error code that indicates one of the following errors occurred:
Invalid usage, which indicates that the
both, are specified as a
File I/O error, which indicates that Fireworks cannot create a response file because the
disk is full.
Error notifying Dreamweaver that the user is not running a valid version of Dreamweaver
(version 2 or later).
Error starting Fireworks process, which indicates that the function does not open a valid
version of Fireworks (version 2 or later).
User cancelled the operation.
argument, which is optional, defines the width to which the image
argument, which is optional, defines the height to which the image
docURL
value or an empty string.
null
argument.
docURL
argument, the
imageURL
argument, or
The FWLaunch API
57
Need help?
Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?