Xmlui.setenabled(), Xmlui.setvisible() – Adobe Extending Flash Professional CS5 User Manual
Page 548

526
EXTENDING FLASH PROFESSIONAL
XMLUI object
Last updated 5/2/2011
var nameArray = new Array("January", "February", "March");
var monthArray = new Array();
for (i=0;i elem = new Object(); elem.label = nameArray[i]; elem.value = i; monthArray[i] = elem; } fl.xmlui.setControlItemElements("myControlID", monthArray); See also , , xmlui.setEnabled() Availability Usage xmlui.setEnabled(controlID, enable) Parameters controlID A string that specifies the ID attribute of the control you want to enable or disable. enable A Boolean value of true if you want to enable the control, or false if you want to disable (dim) it. Returns Description Example myControl : fl.xmlui.setEnabled("myControl", false); See also xmlui.setVisible() Availability Usage xmlui.setVisible(controlID, visible)
Flash 8.
Nothing.
Method; enables or disables (dims) a control.
The following example dims the control with the ID attribute
Flash 8.