Adobe 38040334 - Dreamweaver CS3 User Manual page 42

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

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
argument is the path to the active document, which is expressed as a file:// URL.
docURL
• The
argument is the path to the selected image. If the path is relative, it is relative to the path that you
imageURL
specify in the
argument.
docURL
• The
argument, which is optional, defines the width to which the image should be resized.
targetWidth
• The
argument, which is optional, defines the height to which the image should be resized.
targetHeight
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
value or an empty string.
• 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.
FWLaunch.validateFireworks()
Availability
Dreamweaver 2, Fireworks 2.
Description
This function looks for the specified version of Fireworks on the user's hard disk.
argument, the
docURL
imageURL
argument, or both, are specified as a
DREAMWEAVER CS3
37
API Reference
null

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents