Mega Code Archive
ObjectUtil getClassInfo() returns an Object with the name and properties of the target object
import mx.controls.Alert;
import mx.utils.ObjectUtil;
private function showProps(b:Button):void {
var o:Object = ObjectUtil.getClassInfo(b);
ta1.text = ObjectUtil.toString(o);
}