XMLUI object
Availability
Flash MX 2004.
Description
Flash MX 2004 supports custom dialog boxes written in a subset of the XML User Interface
Language (XUL). For more information, see Appendix B, "XML to UI" in Using Flash. You can
write a dialog.xml file and invoke it from the JavaScript API using the
method.
An XML User Interface (XMLUI) dialog box can be used by several Flash MX 2004 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
handlers in buttons.
Method summary for the XMLUI object
The following methods are available for the XMLUI object:
Method
xmlui.accept()
xmlui.cancel()
xmlui.get()
xmlui.set()
xmlui.accept()
Availability
Flash MX 2004.
Usage
xmlui.accept()
Parameters
None.
Returns
Nothing.
Description
Method; makes the current XMLUI dialog box exit with an accept state, which is
equivalent to the user clicking the OK button.
Method; makes the current XMLUI dialog box exit with a cancel state, which is
equivalent to the user clicking the Cancel button.
Method; retrieves the value of the specified property of the current XMLUI
dialog box.
Method; modifies the value of the specified property of the current XMLUI
dialog box.
CHAPTER 3
document.xmlPanel()
oncommand
XMLUI object
Objects
365