Well I was unable to really test it all the way, since I wasn't sure how your stage was setup. However this code is basically writing over each image with a new one, so if you get it to work only one image will be loaded anyways.
Also here is a revised set of code which still only displays the last image loaded
Code:
playlist = new XML();
playlist.ignoreWhite = true;
playlist.load("playlist.xml");
titre = new Array;
cheminVideo = new Array;
cheminVignettes = new Array;
playlist.onLoad=function () {
var i:Number;
nombre=playlist.firstChild.childNodes.length;
for(i=0; i<nombre;i++){
titre[i] = playlist.firstChild.childNodes[i].childNodes[0].firstChild;
cheminVideo[i] = playlist.firstChild.childNodes[i].childNodes[1].firstChild;
cheminVignettes[i] = playlist.firstChild.childNodes[i].childNodes[2].firstChild;
creaVignette(i,cheminVignettes[i]);
}
}
function creaVignette(i,cheminPhoto){
_root.createEmptyMovieClip("vignette",1);
_root.vignette._x=0;
_root.vignette._y=0;
_root.vignette._xscale=60;
_root.vignette._yscale=60;
cheminPhoto=cheminVignettes[i];
trace(cheminPhoto);
_root.vignette.loadMovie(cheminPhoto);
if (i==0)
{
_root._y=0;
_root._x=0;
}
else
{
_root._x=_root._x+90;
_root._y=0;
}
_root.onPress=function () {
monFlux.close();
lectureVideo(i);
}
}
What would be better is to load each image into a new movieClip, and then place them, IMO.