# Display next ChildNode using AS?

**URL:** https://forum.kirupa.com/t/display-next-childnode-using-as/162032
**Category:** flash
**Created:** [September 9, 2005, 2:21am UTC](https://forum.kirupa.com/t/display-next-childnode-using-as/162032 "2005-09-09T02:21:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![unchew](https://avatars.discourse-cdn.com/v4/letter/u/7ba0ec/32.png) [@unchew](https://forum.kirupa.com/u/unchew)
#### Post date: [September 9, 2005, 2:21am UTC](https://forum.kirupa.com/t/display-next-childnode-using-as/162032/1 "2005-09-09T02:21:18Z")

</div>

Ok, I have this extremely simple XML displaying movie I made using the Display XML in Flash tutorial, and now I want to know what to do so that I can click on a button and make the whole data change to the next ChildNode. For example,

```auto
 <?xml version="1.0"?> 
<inventors>
 <person>
  <name>Thomas Edison</name>
  <comment>Inventor of many things such as the incandescent lightbulb.</comment>
 </person>
 <person>
  <name>Doug Engelbart</name>
  <comment>Invented the mouse at the Stanford Research Institute</comment>
 </person>
</inventors>

```

it first displays the first person named “Thomas” and all of its info, and when I click a “next” button I want it to display the info of the next person shown in the XML file. I think it is done using [color=#0000d0]nextSibling [/color][color=black]or something like that… but I dont know how to use it… any ideas?[/color]
