A little pb with my XML gallery

Hi,

i’m trying to make my very first XML gallery, and i’ve got a little pb…

this is my AS code, where my pb is :

[color=Sienna]xmlData.onLoad = function(success) {
total_images = this.firstChild.childNodes.length;
if (success) {
for (i=0; i<total_images; i++) {
pict = this.firstChild.childNodes
.attributes.main;
trace(pict);
eval(“t”+*).onRelease = function() {
encart_img.loadMovie(pict);
};

}

}

};
*[/color] [left][color=Sienna][color=Black]when i check my [/color][/color][color=Sienna]*trace(pict); *[color=Black]function, it’s good… the pannel give me all my jpg files ( test1.jpg, test2.jpg, etc…)
but when i click on my button ( bold AS code ), it load ONLY the last JPG file !!! ( don’t load the the first )…

have an idea ?

thanks
[/color][/color][/left]