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 a:XML in classInfo..accessor) {
if (a.@access == 'writeonly') {
ta1.text += "Property " + a.@name + " (" + a.@type +")\n";
}else {
ta1.text += "Property " + a.@name + "=" + button1[a.@name] + " (" + a.@type +")\n";
}
}
}