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

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 ) 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

previous_btn.onRelease = function() {



and heres the function code:

function prevImage() {

if (p>0) {

picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
desc_title.text = title[p];


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

any help would be appreciated!