User Guide
150 Application
Arguments
None.
Returns
A string that contains the name of the text editor that is suitable for presentation in the user
interface (UI), not the full path.
dreamweaver.getFlashPath()
Availability
Dreamweaver MX.
Description
Gets the full path to the Flash MX application in the form of a file URL.
Arguments
None.
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 dw.getFlashPath() function to obtain the path to the Flash
application and then passes the path in the form of a file://URL to the
dw.openWithApp()
function to open the document with Flash:
var myDoc = dreamweaver.getDocumentDOM();
if (dreamweaver.validateFlash()) {
var flashArray = dreamweaver.getFlashPath();
dreamweaver.openWithApp(myDoc.myForm.swfFilePath, flashArray[1]);
}
dreamweaver.getPrimaryBrowser()
Availability
Dreamweaver 3.
000_DW_API_Print.book Page 150 Wednesday, July 20, 2005 11:58 AM