Creates a new modal dialog box, instantiates a Flash Player
inside the dialog box, and loads the SWF file. This is a way to
provide graphical user interfaces inside Designer.
Note:
Locate the SWF file in the same folder that the macros script
is installed in. The sSWF parameter must only contain a filename,
and no path information. Designer only loads the SWF file from the
same folder as the currently running JavaScript file.
Syntax
designer.showFlexDialog( STRING param1, INTEGER param2, INTEGER param3)
Parameters
param
1
|
A valid string value representing the name
of a SWF file to load.
|
param
2
|
A valid integer value representing the width
of the user interface contained in the SWF file.
This parameter
indicates the width of the host dialog box. If this parameter is
set to a value that is less than the minimum width for the dialog
box, it is adjusted to that value. If this parameter is set to a
value that is greater than the dialog box’s desktop width, it is
adjusted to that value.
|
param
3
|
A valid integer value representing the height
of the user interface contained in the SWF file.
This parameter
indicates the height of the host dialog box. If this parameter is
set to a value that is less than the minimum width for the dialog
box, the dialog box is adjusted to that value. If this value is
set to a value that is greater than the dialog box’s desktop height,
the dialog box is adjusted to that value.
|
Returns
A string from the form application
built with Flex. When the form application built with Flex stops,
it calls back to Designer to indicate that it has stopped running.
With the callback, it passes back a string. A common use for this
is for the form application built with Flex to send back its closing
status, such as OK or Cancel.
|
|
|