XML help required!

Hi there,

I’m trying to create a flash file that displays two sets of information from an XML feed - the parent and the child.

The feed is in six parts and I have buttons to go back and forth. However, although the parent moves as required, the child stays on the first page. Code below. Any help would be appreciated as its driving me made.

(you may recognise some of the code!)

PopulateLists = function (bob) {
first_txt.text = last_txt.text=gpa_txt.text="";
for (j = 0; j<bob.length; j++) {
participant = bob[j].attributes;
first_txt.text += participant.name+"
“;
last_txt.text += participant.best+”
“;
gpa_txt.text += participant.bookie+”
“;
}
}
function loadXML(loaded) {
if (loaded) {
xmlData = this.firstChild.firstChild;
participant_array = xmlData.childNodes;
PopulateLists(participant_array);
xmlNode = this.firstChild;
description = [];
time = [];
link = [];
total = xmlNode.childNodes.length;
totalNum = 0;
for (i=0; i<total; i++) {
description* = xmlNode.childNodes*.attributes.course;
time* = xmlNode.childNodes*.attributes.name;
link* = xmlNode.childNodes*.attributes.map;
}
firstImage();
} else {
content = “file not loaded!”;
}
}
participant_array;
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(“adracing_next6.xml”);
// ///////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
// ///////////////////////////////////
p = 0;
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
desc_txt.text = description[p];
time_txt.text = time[p];
link_txt.Button = link[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p–;
desc_txt.text = description[p];
time_txt.text = time[p];
link_txt.Button = link[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
desc_txt.text = description[0];
time_txt.text = time[0];
link_txt.Button = link[0];
picture_num();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+” / "+total;
}