Flash panels and dialogs functions, Dreamweaver.flash.newcontrol() – Adobe Dreamweaver API Reference CS5 User Manual
Page 47
42
DREAMWEAVER API REFERENCE
Flash integration
Last updated 8/27/2013
"file:///MyMac/test.swt" // template file used to create this .swf file
"dwType" // first parameter
"myType" // first parameter value
"text" // second parameter
"Hello World" // second parameter value
Flash panels and dialogs functions
The following APIs enable you to add SWF files in panels and dialogs.
dreamweaver.flash.newControl()
Availability
Dreamweaver CS4.
Description
This function enables you to create a Flash control. It is referred to later through the
controlID
parameter. The
control displays the Flash file (.swf) specified by the SWF path. The control is positioned and has the size specified in
the
defaultGeometry
parameter.
Note: Dreamweaver displays the Flash controls when you call
flash.requestStateChange
. Dreamweaver displays the
Dialog controls when you call
newControl
; you need not call
flash.requestStateChange
.
Arguments
controlID
,
controlType
,
controlData
•
The
controlID
argument is a string value.
•
The
controlType
argument specifies whether the panel is a standard extension ("standard"), a trusted standard
extension ("trusted"), or a plus extension (any other value). If it is a plus extension, the value is an identifier known
specially to the host application that indicates the type of custom integration required. If the application does not
understand the custom integration type, it returns an error.
•
The
controlData
is an object. Some of the following are the key properties of this argument: