beautypg.com

Dreamweaver.getexternaltexteditor(), Dreamweaver.getflashpath() – Adobe Dreamweaver API Reference CS5 User Manual

Page 113

background image

108

DREAMWEAVER API REFERENCE

Application

Last updated 8/27/2013

Example
A call to the

dreamweaver.getExtensionEditorList(".gif")

function might return an array that contains the

following strings:

"Fireworks 3"

"file:///C|/Program Files/Adobe/Fireworks 3/Fireworks 3.exe"

dreamweaver.getExternalTextEditor()

Availability
Dreamweaver 4.

Description
Gets the name of the currently configured external text editor.

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]);

}