beautypg.com

Chapter 50: xmlui object, Xmlui.accept(), Xmlui object – Adobe Extending Flash Professional CS5 User Manual

Page 542: Read-only property; an

background image

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

document.xmlPanel()

method. To

retrieve an object representing the current XMLUI dialog box, use

fl.xmlui

.

Method summary
The following methods are available for the XMLUI object:

xmlui.accept()

Availability
Flash MX 2004.

Usage

xmlui.accept()

Method

Description

xmlui.accept()

Closes the current XMLUI dialog box with an accept state.

xmlui.cancel()

Closes the current XMLUI dialog box with a cancel state.

xmlui.get()

Retrieves the value of the specified property of the current XMLUI dialog box.

xmlui.getControlItemElement()

Returns the current control item for the specified control.

xmlui.getEnabled()

Returns a Boolean value that specifies whether the control is enabled or
disabled (dimmed).

xmlui.getVisible()

Returns a Boolean value that specifies whether the control is visible or hidden.

xmlui.set()

Modifies the value of the specified property of the current XMLUI dialog box.

xmlui.setControlItemElement()

Sets the label and value for the current item.

xmlui.setControlItemElements()

Sets the label, value pairs of the current item.

xmlui.setEnabled()

Enables or disables (dims) a control.

xmlui.setVisible()

Shows or hides a control.

This manual is related to the following products: