MX 2004 .swf Slide Show not working with .xml

Hi,

I’m having problems with a simple flash site that contains a scrolling slide show, that uses a .xml file.

I was sent a .fla file that I couldn’t open with MX 2004 … I asked them to save it as a MX 2004 file. They sent it back, and I was able to open it.

The problem is … when I save it as a .swf the slide show doesn’t work.

The .swf & .xml files are on the same level in the directory, and the .swf path to the .xml file is correct, also the .xml to the image folder path is correct.

I have spent hours going through this, and can’t get it to work.

I have added images to the .xml file, and they show up (I am using the original .swf for this) so the .xml file is OK, and again the path from .xml to the images folder is correct. This is the working .swf file (click on the portfolio link ) http://estudiasd.com/

Now … imagine no images there, and that’s what I’m getting when I save the .fla as a .swf.

Other changes I make to the .fla are working properly … just the slideshow is the problem.

Did something happen when the .fla was saved as a MX 2004 that caused the .xml part to stop working? Or is is an XML version issue … HELP!

IM not a whiz at actionscript, but I have gone over it several times, and can’t see anything that looks out of place.

Here’s the actionscript … if anyone has time to look at it.

//http://www.kirupa.com/developer/mx2004/thumbnails.htm
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
thumbnails = [];
imagewidth = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
//image* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
//description* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
thumbnails* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
imagewidth* = number(xmlNode.childNodes*.childNodes[1].firstChild.nodeValue);
trace(i + " : " + thumbnails* + " : " + imagewidth*);
pos=0;
imagespace=30;
if (i!=0) {
for (j=1; j<=i; j++) {
pos=pos+imagewidth[j-1]+imagespace;
}
}
thumbnails_fn(i, pos);
}
//firstImage();
} else {
content = “file not loaded!”;
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(“portfoilo.xml”);

function thumbNailScroller() {
// thumbnail code!
this.createEmptyMovieClip(“tscroller”, 1000);
scroll_speed = 10;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
if ((_root._xmouse>=(hit_right._x-100)) && (_root._xmouse<=(hit_right._x+82))&& (thumbnail_mc.hitTest(hit_right))) {
thumbnail_mc._x -= scroll_speed;
} else if ((_root._xmouse<=(hit_left._x+100)) && (_root._xmouse>=(hit_left._x-60)) && (thumbnail_mc.hitTest(hit_left))) {
thumbnail_mc._x += scroll_speed;
}
} else {
delete tscroller.onEnterFrame;
}
};
}

function thumbnails_fn(k, xpos) {
thumbnail_mc.createEmptyMovieClip(“t”+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x=hit_left._x+xpos;
trace(target_mc + " : " + target_mc._x + " : " + xpos);
target_mc.pictureValue = k;
//target_mc.onRelease = function() {
//p = this.pictureValue-1;
//nextImage();
//};
target_mc.onRollOver = function() {
// this._alpha = 50;
thumbNailScroller();
};
target_mc.onRollOut = function() {
this._alpha = 100;
};
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], “thumbnail_mc.t”+k);
}

Thanks for looking! I hope someone has an answer to this.