# \[AS2\] Can't load specific childnode from XML file

**URL:** <https://forum.kirupa.com/t/as2-cant-load-specific-childnode-from-xml-file/289227>\
**Category:** flash\
**Created:** [May 27, 2009, 6:51pm UTC](https://forum.kirupa.com/t/as2-cant-load-specific-childnode-from-xml-file/289227 "2009-05-27T18:51:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mindsplit](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@Mindsplit](https://forum.kirupa.com/u/Mindsplit)\
**Post date:** [May 27, 2009, 6:51pm UTC](https://forum.kirupa.com/t/as2-cant-load-specific-childnode-from-xml-file/289227/1 "2009-05-27T18:51:40Z")

</div>

hi everyone

im working on a flash file where im loading a title, description and image from an xml file.

im using this tutorial from Kirupa ( [http://www.kirupa.com/developer/mx2004/xml\_flash\_photogallery.htm](http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm) ) and have everything working fine. my only problem is I can’t seem to figure out how to load a specific childnode when clicking a button. right now when the user clicks a button, it loads the next or previous childnode using this code

Key.addListener(listen);  
previous\_btn.onRelease = function() {

prevImage();

};

and heres the function code:

function prevImage() {

if (p\>0) {

p–;  
picture.\_alpha = 0;  
picture.loadMovie(image[p], 1);  
desc\_txt.text = description[p];  
desc\_title.text = title[p];  
picture\_num();

}

is there any way to target a specific childnode within the xml file? im using Flash CS3 AS2

any help would be appreciated!
