EasyManua.ls Logo

MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API - Page 58

MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API
628 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
58 Fireworks Integration
FWLaunch.validateFireworks()
Availability
Dreamweaver 2, Fireworks 2.
Description
This function looks for the specified version of Fireworks on the user’s hard disk.
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:
<html>
<head>
<title>Prompt in Fireworks</title>
<meta http-equiv="Content-Type" content="text/html; ¬
charset=iso-8859-1">
<script>
function commandButtons(){
return new Array("Prompt", "promptInFireworks()", "Cancel", ¬
"readyToCancel()", "Close","window.close()");
}
var gCancelClicked = false;
var gProgressTrackerCookie = null;
000_DW_API_Print.book Page 58 Wednesday, July 20, 2005 11:58 AM

Table of Contents

Related product manuals