# Iterating through an object \[AS1\]

**URL:** <https://forum.kirupa.com/t/iterating-through-an-object-as1/167104>\
**Category:** flash\
**Created:** [October 25, 2005, 2:38pm UTC](https://forum.kirupa.com/t/iterating-through-an-object-as1/167104 "2005-10-25T14:38:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kevinc/32/1079_2.png) [@kevinc](https://forum.kirupa.com/u/kevinc)\
**Post date:** [October 25, 2005, 2:38pm UTC](https://forum.kirupa.com/t/iterating-through-an-object-as1/167104/1 "2005-10-25T14:38:50Z")

</div>

Hi,

I’ve parse my XML into a nice object, so it can be handled well.

e.g. I can reference things directly like so:  
**newsArticle.1.title.**  
**newsArticle.5.content**

The problem is, I don’t know how many newsItems there are.  
How can I cycle though all the child elements on ‘news’

In XML, this would be quite easy, using .nextSibling etc… What’s similar for Objects?

thanks,
