Adobe 38040334 API Reference - Page 43
A simple FWLaunch communication example, Arguments, Returns, Example
![]() |
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 43 highlights
DREAMWEAVER CS3 38 API Reference Arguments {versionNumber} • The versionNumber argument is an optional floating-point number that is greater than or equal to 2; it represents the required version of Fireworks. If this argument is omitted, the default is 2. Returns A Boolean value that indicates whether the specified version of Fireworks was found. Example The following code checks whether Fireworks is installed: if (FWLaunch.validateFireworks(6.0)){ alert("Fireworks 6.0 or later is installed."); }else{ alert("Fireworks 6.0 is not installed."); } A simple FWLaunch communication example The following command asks Fireworks to prompt the user for their name and returns the name to Dreamweaver: Prompt in Fireworks function commandButtons(){ return new Array("Prompt", "promptInFireworks()", "Cancel", ¬ "readyToCancel()", "Close","window.close()"); } var gCancelClicked = false; var gProgressTrackerCookie = null; function readyToCancel() { gCancelClicked = true; } function promptInFireworks() { var isFireworks3 = FWLaunch.validateFireworks(3.0); if (!isFireworks3) { alert("You must have Fireworks 3.0 or later to use this ¬ command"); return; } // Tell Fireworks to execute the prompt() method. gProgressTrackerCookie = FWLaunch.execJsInFireworks¬ ("prompt('Please enter your name:')"); // null means it wasn't launched, a number means an error code if (gProgressTrackerCookie == null || ¬
![](/manual_guide/products/adobe-38040334-api-reference-b593776/43.png)