Extending Flash |
|
|
|
| Objects > XMLUI object > xmlui.getControlItemElement() | |||
Flash 8.
xmlui.getControlItemElement(controlPropertyName)
controlPropertyName A string that specifies the property whose control item element you want to retrieve.
An object that represents the current control item for the control specified by controlPropertyName.
Method; returns the label and value of the line selected in a ListBox or ComboBox control for the control specified by controlPropertyName.
The following example returns the label and value of the currently selected line for the myListBox control:
var elem = new Object();
elem = fl.xmlui.getControlItemElement("myListBox");
fl.trace("label = " + elem.label + " value = " + elem.value);
fl.xmlui, document.xmlPanel(), xmlui.get(), xmlui.setControlItemElement(), xmlui.setControlItemElements()
|
|
|
|