Flash 8.
xmlui.getEnabled(controlID)
controlID A string that specifies the ID attribute of the control whose status you want to retrieve.
A Boolean value of true if the control is enabled; false otherwise.
Method; returns a Boolean value that specifies whether the control is enabled or disabled (dimmed).
The following example returns a value that indicates whether the control with the ID attribute myListBox is enabled:
var isEnabled = fl.xmlui.getEnabled("myListBox");
fl.trace(isEnabled);