Adobe Dreamweaver API Reference CS5 User Manual
Page 48

43
DREAMWEAVER API REFERENCE
Flash integration
Last updated 8/27/2013
The following table lists the
PanelWindow
specifications:
Returns
One of the following success or error codes:
•
The code
PlugPlugErrorCode_success
indicates that creating the control succeeded.
Property
Description
Values
controlData.swfUTF8Path
Location of the SWF. This property is required
and it is passed in as a string of Unicode
characters, since all characters in JavaScript are in
unicode.
The possible values for
controlData.windowType
•
PanelWindow.
The table following
this table lists the specifications for
this value.
•
ModalDialogWindow
{
controlData.scriptPath}
Path to .js file that contains the functions to
execute from .swf using External Interface call.
This property is optional. If you want to call back
into JavaScript code of Dreamweaver from the
.swf file using an External Interface. You can
provide a .js file containing functions that you
can then call from the .swf file. For more
information, see the
dw.flash.executeScript
call.
controlData.defaultGeometry
The
defaultGeometry
values are represented
as screen coordinates from the upper left of the
screen. This property is required.
Object /*!< default creation
geometry, including positioning */
{ topleftx: Number, toplefty:
Number, width: Number, height:
Number }
Options
Type
Descriptions
name
String
The name of the panel that appears on the tab. If you don't specify it, it is
named "UNDEFINED". All panel names appear in uppercase. You cannot
change it to lowercase.
{
controlData.minSize
}
Object
minSize
only applies to controls of type
PanelWindow
. This option
controls the minimum size that the panel can be resized to. This option is
optional. If
minSize
is not specified, it defaults to the width and height
specified in
defaultGeometry
and the panel cannot be resized.
{ width: Number, height: Number }
{
controlData.maxSize
}
Object
maxSize
applies to controls of type
PanelWindow
only. This option is
optional. This option controls the maximum size that the panel can be
resized to. If maxSize is not specified, it defaults to the width and height
specified in
defaultGeometry
and the panel cannot be resized..
{ width: Number, height: Number }
{
iconPathNormal
}
String
Path to icon that must be used in the floating panel when the panel is
collapsed in icon mode. This option is optional.
{
iconPathRollOver
}
String
Path to icon that must be used in the floating panel when the panel is
collapsed in icon mode and the user rolls over it. This option is optional.
{
iconPathDisable
}
String
Path to icon that must be used in the floating panel when the panel is
collapsed in icon mode and it is disabled. This option is optional.