It is easy to loop through an Object or Array’s properties with the following:
[SIZE=1]
for(var j:String in myData){
trace(j, myData[j]);
}[/SIZE]
But I need to loop through the properties of an unknown object, a sprite for example. How can I loop through a sprite like above and have it trace out all the properties?
[SIZE=1]alpha: 1
x: 50
y: 40
etc…[/SIZE]