Continous Scrolling Images From XML

Hey All,
Few days back i found a tutorial here on kirupa itself for scrolling thumbnails.The file reads images from Images folder.But the problem is that its leaving a gap in the end and the start.Also the funny thing is the XML reads from the last node instead of the first.Please if anyone can help on this will be of great help.
What I want is the images to scroll Continuously Without leaving gap.

Thanks In Advance.

Here’s the Code:

function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
//test=xmlNode;
address = [];
thumbnails = [];
picwidth = [];
total = xmlNode.childNodes.length;
//test = total;
for (i=0; i<total; i++) {
address* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
//test=address*;
thumbnails* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
//test=thumbnails*;
picwidth* = xmlNode.childNodes*.childNodes[2].firstChild.nodeValue;
test = picwidth*;
thumbnails_fn(i);
thumbNailScroller();
}
} else {
content = “Content Not Loaded”;
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(“images.xml”);
/////////////////////////////////////
thumbnail_mc._x = 0;
function thumbNailScroller() {
// thumbnail code!
this.createEmptyMovieClip(“tscroller”, 1000);
scroll_speed = 2;
tscroller.onEnterFrame = function() {
if (thumbnail_mc._x>-thumbnail_mc._width) {
thumbnail_mc._x -= scroll_speed;
} else {
thumbnail_mc._x = 0;
}
};
}
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip(“t”+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = picwidth[k]*1;
//Onrelease Action On every pic
target_mc.onRelease = function() {
getURL(address[k], “_blank”);
};
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], “thumbnail_mc.t”+k);
}