Adobe 38040334 - Dreamweaver CS3 User Manual page 112

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

Advertisement

Returns
An array that contains two elements. Element [0] is a string that contains the name of the Flash MX editor. Element
[1] is a string that contains the path to the Flash application on the local computer, which is expressed as a file:// URL.
If Flash is not installed, it returns nothing.
Example
The following example calls the
passes the path in the form of a file://URL to the
var myDoc = dreamweaver.getDocumentDOM();
if (dreamweaver.validateFlash()) {
var flashArray = dreamweaver.getFlashPath();
dreamweaver.openWithApp(myDoc.myForm.swfFilePath, flashArray[1]);
}
dreamweaver.getPrimaryBrowser()
Availability
Dreamweaver 3.
Description
Gets the path to the primary browser.
Arguments
None.
Returns
A string that contains the path on the user's computer to the primary browser, which is expressed as a file:// URL. If
no primary browser is defined, it returns nothing.
dreamweaver.getPrimaryExtensionEditor()
Availability
Dreamweaver 3.
Description
Gets the primary editor for the specified file.
Arguments
fileURL
• The
argument is the path to the file to open, which is expressed as a file:// URL.
fileURL
Returns
An array that contains a pair of strings. The first string in the pair is the name of the editor, and the second string is
its location on the user's computer, which is expressed as a file:// URL. If no primary editor is defined, the function
returns an array that contains one empty string.
function to obtain the path to the Flash application and then
dw.getFlashPath()
dw.openWithApp()
function to open the document with Flash:
DREAMWEAVER CS3
107
API Reference

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents