# Looping through objects?

**URL:** <https://forum.kirupa.com/t/looping-through-objects/241944>\
**Category:** flash\
**Created:** [October 19, 2007, 6:53pm UTC](https://forum.kirupa.com/t/looping-through-objects/241944 "2007-10-19T18:53:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![axiomflash](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/axiomflash/32/3952_2.png) [@axiomflash](https://forum.kirupa.com/u/axiomflash)\
**Post date:** [October 19, 2007, 6:53pm UTC](https://forum.kirupa.com/t/looping-through-objects/241944/1 "2007-10-19T18:53:52Z")

</div>

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]
