# RSS Slide show

**URL:** <https://forum.kirupa.com/t/rss-slide-show/198142>\
**Category:** flash\
**Created:** [August 22, 2006, 6:45pm UTC](https://forum.kirupa.com/t/rss-slide-show/198142 "2006-08-22T18:45:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kenny2380](https://avatars.discourse-cdn.com/v4/letter/k/a8b319/32.png) [@kenny2380](https://forum.kirupa.com/u/kenny2380)\
**Post date:** [August 22, 2006, 6:45pm UTC](https://forum.kirupa.com/t/rss-slide-show/198142/1 "2006-08-22T18:45:02Z")

</div>

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](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](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](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;

```

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