UIComponentdispatches a type event enabledChangedfrom its method set enabled. Here is the source of this method:
public function set enabled(value:Boolean):void
{
_enabled = value;
cachedTextFormat = null;
invalidateDisplayList();
dispatchEvent(new Event("enabledChanged"));
}
You can listen to it using:
myComponent.addEventListener("enabledChanged", handleEnabledChanged);
source
share