RSS Slide show

I need some help. I am creating a slideshow using RSS and I am having trouble incrementing the childNode* once I click on the “next button” Within the RSS there is a link to a story and a title for the heading of the picture. The pictures are being brought in through a URL outside of the RSS.

Below is the code…(i stands for the starting childNode* after you get past all the other stuff that an RSS feed brings in. I just don’t know how to increment i once I click the next button)

stop();
// set the pic number and total pics in the lead
picNum = 1;
i=6;
totalPics = 5;
////////////////////////////////////////////////////////////////////////////////////////////////////////
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild.childNodes[0];
photo_mc.loadMovie(“http://myURL.com” + picNum + “.jpg”, 1);
heading = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
link = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
desc_txt.text = heading;
linkMC.onRelease = function() {
getURL(link);
};
} else {
content = “file not loaded!”;
}
}
///////////////////////////////////////////////////////////////////////////////////////////////////////
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(“http://myURL.com/index.php?option=com_rd_rss&id=2”);
///////////////////////////////////////////////////////////////////////////////////////////////////////
nextBtn.onRelease = function() {
if (picNum >= totalPics) {
picNum = 0;
}
picNum++;
RSSlist = picNum + 5;
photo_mc.loadMovie(“http://myURL.com/images/digitwindow/mine/mine” + picNum + “.jpg”, 1);
desc_txt.text = heading*;

};
/////////////////////////////////////////////////////////////////////////////////////////////////////////
onEnterFrame = function() {
filesize = photo_mc.getBytesTotal();
loaded = photo_mc.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (photo_mc._alpha<100) {
photo_mc._alpha += 10;
}
}

//Set the Text of the Credits, Current Picture, and the Total Pics
currentPic_txt.text = picNum;
totalPics_txt.text = totalPics;

};
///////////////////////////////////////////////////////////////////////////////////////////////////