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 v:XML in classInfo..variable) {
ta1.text += "Variable " + v.@name + "=" + button1[v.@name] + " (" + v.@type + ")\n";
}
}