# Help with XML, looping through nodes

**URL:** <https://forum.kirupa.com/t/help-with-xml-looping-through-nodes/177068>\
**Category:** flash\
**Created:** [January 30, 2006, 1:16am UTC](https://forum.kirupa.com/t/help-with-xml-looping-through-nodes/177068 "2006-01-30T01:16:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![quovadimus02](https://avatars.discourse-cdn.com/v4/letter/q/b3f665/32.png) [@quovadimus02](https://forum.kirupa.com/u/quovadimus02)\
**Post date:** [January 30, 2006, 1:16am UTC](https://forum.kirupa.com/t/help-with-xml-looping-through-nodes/177068/1 "2006-01-30T01:16:32Z")

</div>

I’m creating a navigation that is populated by an XML file. It loops through the amount of “client” nodes in the XML file and attaches a movie clip to the stage for each instance of the “client” node. I have the list populating fine as well as some buttons to make the list scroll. I’m unsure how to attach button states/actions to each of the created clips though.

Each “client” node has multiple “image” child nodes. In my current XML file each “client” has 3 “image” child nodes, though in my final XML file the number could vary from 1 - 10. My question is this. How can I attach roll over and release states to each of the attached clips? I am trying to trace the amount of “image” child nodes each client has when one of the clips is released.

I’ve attached my source file (MX04) for anyone to view. I know this isn’t the easiest question and I greatly appreciate any help with it.
