Chapter 50: xmlui object, Xmlui.accept(), Xmlui object – Adobe Extending Flash Professional CS5 User Manual
Page 542: Read-only property; an
520
Last updated 5/2/2011
Chapter 50: XMLUI object
Availability
Flash MX 2004.
Description
Flash 8 supports custom dialog boxes written in a subset of the XML User Interface Language (XUL). An XML User
Interface (XMLUI) dialog box can be used by several Flash features, such as commands and behaviors, to provide a
user interface for features that you build using extensibility. The XMLUI object provides the ability to get and set
properties of an XMLUI dialog box, and accept or cancel out of one. The XMLUI methods can be used in callbacks,
such as
oncommand
handlers in buttons.
You can write a dialog.xml file and invoke it from the JavaScript API using the
method. To
retrieve an object representing the current XMLUI dialog box, use
.
Method summary
The following methods are available for the XMLUI object:
xmlui.accept()
Availability
Flash MX 2004.
Usage
xmlui.accept()
Method
Description
Closes the current XMLUI dialog box with an accept state.
Closes the current XMLUI dialog box with a cancel state.
Retrieves the value of the specified property of the current XMLUI dialog box.
Returns the current control item for the specified control.
Returns a Boolean value that specifies whether the control is enabled or
disabled (dimmed).
Returns a Boolean value that specifies whether the control is visible or hidden.
Modifies the value of the specified property of the current XMLUI dialog box.
Sets the label and value for the current item.
xmlui.setControlItemElements()
Sets the label, value pairs of the current item.
Enables or disables (dims) a control.
Shows or hides a control.