I try to get 5 images loaded on one swf.
downloading the first one works :
FRAME 1 :
// image 1
cont1 = this.createEmptyMovieClip(“container1”, 501);
cont1.loadMovie(“1.JPG”, 502);
this.onEnterFrame = function() {
total = cont1.getBytesTotal();
loaded = cont1.getBytesLoaded();
percent1 = Math.round(loaded/total*100);
if (loaded>total) {
cont1._x = 483;
cont1._y = 442;
nextFrame;
}
};
// end function
from here the fallowing images are loaded each time different : sometimes no images a shown, sometimes only one and the second one is in the left corner, sometime 3 from 5 images are loaded and placed and sometimes it works properly
on FRAME 2 :
//im2
cont2= this.createEmptyMovieClip(“container2”, 601);
cont2.loadMovie(location+“2.JPG”, 602);
this.onEnterFrame = function() {
total = cont2.getBytesTotal();
loaded = cont2.getBytesLoaded();
percent2 = Math.round(loaded/total*100);
if (loaded>total) {
cont2._x = 605;
cont2._y = 442;
nextFrame();
}
}; //end function
on Frame 3 for the image 3 )
//im3
cont3= this.createEmptyMovieClip(“container3”, 701);
cont3.loadMovie(location+“3.JPG”, 702);
this.onEnterFrame = function() {
total = cont3.getBytesTotal();
loaded = cont3.getBytesLoaded();
percent3 = Math.round(loaded/total*100);
if (loaded>total) {
cont3._x = 728;
cont3._y = 442;
nextFrame();
}
}; //end function
and so on… why doesn’t each objet do its job : loading the image and placing it on the right place ???
what’s wrong???
Thanks for your help