XML Loading Problem

Here’s my actionscript…

[COLOR=RoyalBlue]stop();
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
wineryid = [];
winery = [];
country = [];
website = [];
about = [];
specialnotes = [];
thumbnails = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
wineryid* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
winery* = xmlNode.childNodes*.childNodes[2].firstChild.nodeValue;
country* = xmlNode.childNodes*.childNodes[3].firstChild.nodeValue;
website* = xmlNode.childNodes*.childNodes[4].firstChild.nodeValue;
about* = xmlNode.childNodes*.childNodes[5].firstChild.nodeValue;
specialnotes* = xmlNode.childNodes*.childNodes[6].firstChild.nodeValue;
thumbnails* = xmlNode.childNodes*.childNodes[7].firstChild.nodeValue;
thumbnails_fn(i);
}
firstImage();
} else {
content = “file not loaded!”;
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(“http://mysite.com/winerylist_sask.php”);

////////////////////////////////////

title_txt.text = “Select a winery from the list below.”;
////////////////////////////////////

listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};

/////////////////////////////////////

p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
winelistContainer.loadMovie(wineryid[p]+"_wines.swf");
wineryname_txt.text = winery[p];
country_txt.text = country[p];
website_txt.text = website[p];
about_txt.text = about[p];
specialnotes_txt.text = specialnotes[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p–;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
winelistContainer.loadMovie(wineryid[p]+"_wines.swf");
wineryname_txt.text = winery[p];
country_txt.text = country[p];
website_txt.text = website[p];
about_txt.text = about[p];
specialnotes_txt.text = specialnotes[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
winelistContainer.loadMovie(wineryid[0]+"_wines.swf");
wineryname_txt.text = winery[0];
country_txt.text = country[0];
website_txt.text = website[0];
about_txt.text = about[0];
specialnotes_txt.text = specialnotes[0];
picture_num();
}

}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}
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._ymouse>=(hit_bottom._y-40)) && (thumbnail_mc.hitTest(hit_bottom))) {
thumbnail_mc._y -= scroll_speed;
} else if ((_root._ymouse<=(hit_top._y+40)) && (thumbnail_mc.hitTest(hit_top))) {
thumbnail_mc._y += scroll_speed;
}
} else {
delete tscroller.onEnterFrame;
}
};
}
function thumbnails_fn(k) {

thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
    tlistener.onLoadInit = function(target_mc) {
    target_mc._y = (target_mc._height+2)*k;
    target_mc.pictureValue = k;
            target_mc.onRelease = function() {
        p = this.pictureValue-1;
        
        nextImage();
    };
    target_mc.onRollOver = function() {
        this._alpha = 50;
        title_txt.text = winery[k]+" - "+ country[k];
        thumbNailScroller();
    };
    target_mc.onRollOut = function() {
        this._alpha = 100;
        title_txt.text = "Select a winery from the list below.";
    };
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);

}
[/COLOR]

And here is the xml file I want it ot load…

[COLOR=Blue]<?xml version=“1.0”?>
<winerylist>
<winery>
<image>http://www.mysite.com/finewinesdata/images/logos/lauruslogo.jpg</image>
<wineryid>4</wineryid>
<winery>Laurus</winery>
<country>France</country>
[/COLOR] [COLOR=Blue] <website>www.gabriel-meffre.fr</website>
<about>LAURUS was born from a concept that unites contemporary wine-making technology with the best of time-proven, traditional know-how. We seek to produce wines with a strong regional identity combined with a dense, generous and elegant structure.
This is the LAURUS philosophy.</about>
<specialnotes></specialnotes>
<thumbnails>http://www.mysite.com/finewinesdata/images/thumbs/laurusthumb.jpg</thumbnails>
</winery>
<winery>
<image>http://www.mysite.com/finewinesdata/images/logos/rozendallogo.jpg</image>
[/COLOR] [COLOR=Blue] <wineryid>3</wineryid>
<winery>Rozendal</winery>
<country>Stellenbosch - South Africa</country>
<website>www.rozendal.co.za</website>
<about>Our History
The farm is situated in the Jonkershoek Valley on the border of Stellenbosch, at the foot of the Jonkershoek mountains. The farm and cellar buildings are more than 150 years old.
Rozendal Farm was purchased by the Ammann family in 1982 and at the time was not producing wine. Merlot grapes where planted in 1983 on Rozendal. Our first vintage</about>
<specialnotes>FactSheet
Quality and Maturation - Article
Rozendal 2001 - Shelf Talker</specialnotes>
[/COLOR] [COLOR=Blue] <thumbnails>http://www.mysite.com/finewinesdata/images/thumbs/rozendalthumb.jpg</thumbnails>
</winery>
<winery>
<image>http://www.mysite.com/finewinesdata/images/logos/selbachlogo.jpg</image>
<wineryid>5</wineryid>
<winery>Selbach</winery>
<country>Germany - Mosel-Saar-Ruwer</country>
[/COLOR] [COLOR=Blue] <website><a href=“http://www.selbach-oster.de/sbcontac.htm” target="_blank">www.selbach-oster.de</a></website>
<about><b>About Tradition: </b> <p> Our assets have much to do with our hands. Since several generations. Since 1661 in our family ownership, as a matter of fact. Our main treasure is simply what nature presents us with: excellent vineyard-sites in the heart of the Mosel region, old, ungrafted vines on steep, south-facing slopes planted on heat-retaining, mineral-rich, rocky slate soil. Granted, these “assets” bring various risks year-in - year-out…but also great opportunities.
Most important, however, are the results.</p>
<br><b>About Nature And Handcrafting: </b><p> Wine is Nature: a multifaceted, living creation. As wine producers, we have not forgotten that we are people who live from the land, who are dependent on nature. Wine is more to us than just business or a source of income. It happens to be our passion, too. A part of ourselves goes in every wine we produce. As you might expect when looking at our vineyards clinging to precipituous slopes, everything from pruning to harvesting is done by hand in an “old-fashioned”, labour-intensive process. We can proudly present our customers with truly handcrafted wines.
Our philosophy of winemaking is “hands-on” in the vineyards and “hands-off” in the cellar. When this motto is put to use it creates the best possible conditions for making truly fine wines while always leaving the “making” to the wine itself.
This means we try to realize the full potential the individual soils, vineyards and vintages have to offer. It starts with labour-intensive work in the vineyards from pruning (low yields) through careful canopy-management to the culminating point - meticulous, rigorous selection at harvest. It ends with the gentle pressing of the fruit. A slow, cool fermentation with the grapes’ own natural yeasts then “makes” the wines in our cellars. “Hands-on” is needed again for getting the wines ready for bottling. We believe that minimal handling (i.e. pumping and filtering) is rewarded by a maximum of flavor, freshness and delicacy.
We strive uncompromisingly for top quality. And it is quality which speaks for itself.
Most of our wines are still fermented and matured in the traditional oak “Fuder”-barrels supplemented by a small number of stainless-steel vats. We do not use new oak for Rieslings to preserve the delicate structure of subtle fruit and crisp acidity as purely as possible.</p>
<br><b>About Signature Quality: </b><p> Selbach-Oster Riesling vineyards lie on a 4-mile / 7 km strech along the Mosel starting in Zeltingen, upstream to Wehlen, Graach and Bernkastel. Vines have been cultivated here since Roman times.
Every single vineyard on that short stretch of river has its own special environment and microclimate—its terroir. Each single lot of wine in the cellar shows its own individual, complex “fingerprint”.
No single day is alike and each year, each vintage has its own unique character, its “signature”.
The grapes mature slowly in a very long, temperate growing season.
All the above represent traditional “values” which we at Selbach-Oster cherish; we try to refine and preserve the liquid result in the bottle, the sleek, tall green Mosel-bottle.
All this in order to present you with Riesling the way we like it: with elegance, complexity and depth of flavor. With the subtlety and fragrance of flowers and the intense mineral quality from our slate soils. With the taste of delicate fruit and a lingering, crisp finish. The way it has always been.</p></about>
[/COLOR] [COLOR=Blue] <specialnotes></specialnotes>
<thumbnails>http://www.mysite.com/finewinesdata/images/thumbs/selbachthumb.jpg</thumbnails>
</winery>
</winerylist>[/COLOR]

The problem I am having is with the flash document, it isn’t loading all of the thumbnails… only the first two. Can anyone shed some light on this for me, I really don’t know why this isn’t working.

Thanks,

jonahholliday