XML Loop Thumb Loader - Stuck on Current (Last) Thumb

So here’s a good one - and thanks in advance for the assistance - I’ve been struggling with this for a couple of days!

Using a bunch of the tutorials on this great site, I’ve been teaching myself AS, and inparticular the XML parse, etc. with the loop commands to load an ideterminate number of images, etc. attributed in an XML file.

I’ve got the attached code to work before - and it works well here too, loading all the thumbnails in their correct location, and as per the XML file. BUT now it’s part of this page, the ‘current_thumb’ seems stuck on the last thumbnail, and a rollOver of any thumbnail will cause only the last one to action. In addition, when I put the trace command in on the onRollOut function (trace(current_thumb_mc) I get “_level0.menu_mc.item3_mc” no matter which of the four tumbnails I rollOver!

Any assistance greatly appreciated!!

Cheers,

Ewen

//Initial P Value
p = 0;

////////////////////////////////
//Project Information
//Assigning Information
function loadXML(loaded) {
if (loaded) {
xmlDataNode = this.firstChild.childNodes[0]
xmlImageNode = this.firstChild.childNodes[1]
image = [];
total = xmlImageNode.childNodes.length;
//Main Image(s)
for (i = 0; i < total; i++) {
image* = xmlImageNode.childNodes*.firstChild;
}

//ThumbNail(s)
for (t = 0; t < total; t++) {
var currentPicture = “images/t”+xmlImageNode.childNodes[t].firstChild;
var currentThumb_mc = menu_mc.attachMovie(“thumb”,“item”+t+"_mc", t);
currentThumb_mc._x = (t%3) * 80;
currentThumb_mc._y = Math.floor(t/3) * 80;

currentThumb_mc.thumb_container.loadMovie(currentPicture);
currentThumb_mc.thumb_container.filters = [GreyFilter];

currentThumb_mc.onRollOver = function(){
currentThumb_mc.thumb_container.filters = [ColourFilter];
currentThumb_mc.highlight._alpha = 0;
}

currentThumb_mc.onRollOut = function(){
currentThumb_mc.thumb_container.filters = [GreyFilter];
currentThumb_mc.highlight._alpha = 90;
trace(currentThumb_mc);
}

currentThumb_mc.onRelease = function(){
var tweenWhiteOut:Tween = new Tween(picture, “_alpha”, easing.Regular.easeIn, 100, 0, 4);
tweenWhiteOut.onMotionFinished = function() {
startLoadingImage(“images/”+image[1], 1);
p = t;
}
}
//Placing Text Data
firstImage();
proj_title.text = xmlDataNode.childNodes[0].firstChild.nodeValue;
proj_location.text = xmlDataNode.childNodes[1].firstChild.nodeValue;
proj_completion.text = xmlDataNode.childNodes[2].firstChild.nodeValue;
proj_team_1.text = xmlDataNode.childNodes[3].firstChild.nodeValue;
proj_team_name_1.text = xmlDataNode.childNodes[4].firstChild.nodeValue;
proj_team_2.text = xmlDataNode.childNodes[5].firstChild.nodeValue;
proj_team_name_2.text = xmlDataNode.childNodes[6].firstChild.nodeValue;
proj_team_3.text = xmlDataNode.childNodes[7].firstChild.nodeValue;
proj_team_name_3.text = xmlDataNode.childNodes[8].firstChild.nodeValue;
proj_desc.autoSize = “left”;
proj_desc.multiline = true;
proj_desc.wordwrap = true;
proj_desc.text = xmlDataNode.childNodes[9].firstChild.nodeValue;

};
} else {
content = “file not loaded!”;
};
};

//Loading Information
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(“project_desc.xml”);