import flash.utils.*;
public function getDetails():void {
var classInfo:XML = describeType(button1);
ta2.text = classInfo.toString();
ta1.text = "Class " + classInfo.@name.toString() + "\n";
for each (var m:XML in classInfo..method) {
ta1.text += "Method " + m.@name + "():" + m.@returnType + "\n";
}
}