User Guide

64 Chapter 5: Fireworks Integration
FWLaunch.bringFWToFront()
Availability
Dreamweaver 3, Fireworks 3.
Description
This function brings Fireworks to the front if it is running.
Arguments
None.
Returns
Nothing.
FWLaunch.execJsInFireworks()
Availability
Dreamweaver 3, Fireworks 3.
Description
This function passes the specified JavaScript, or a reference to a JavaScript file, to Fireworks
to execute.
Arguments
javascriptOrFileURL
The javascriptOrFileURL argument, which is expressed as a file:// URL, is either a string of
literal JavaScript or the path to a JavaScript file.
Returns
A cookie object if the JavaScript passes successfully or a nonzero error code that indicates one of
the following errors occurred:
Invalid usage, which indicates that the javascriptOrFileURL argument is specified as a null
value or as an empty string, or the path to the JS or JSF file is invalid.
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 3 or later).
Error starting Fireworks process, which indicates that the function does not open a valid
version of Fireworks (version 3 or later).
User cancelled the operation.
000_DW_API_Print.book Page 64 Wednesday, August 20, 2003 9:14 AM