hello
i would like to load several jpgs in a animation, with a status bar for each jpg that disappear once the jpg is loaded.
i have a clip with on 1st frame:
//duplicating 24 movies
for (i=1; i<=23; ++i) {
duplicateMovieClip("jmf", "jmf"+i, i);
//stacking the duplicated movieclips
this["jmf"+i]._x += (jmf._width*(i-1));
// loading images in empty clips
this["jmf"+i].image.loadMovie("images/jmf/jmf"+i+".jpg");
// getting loading info
this["jmf"+i].stats.total.text = this["jmf"+i].image.getBytesTotal()+" ko";
this["jmf"+i].stats.charge.text = this["jmf"+i].image.getBytesLoaded()+" ko";
this["jmf"+i].stats.bar._xscale=Math.floor((this["jmf"+i].image.getBytesLoaded()/this["jmf"+i].image.getBytesTotal())*100)
this["jmf"+i].stats.pourcent.text = Math.floor((this["jmf"+i].image.getBytesLoaded()/this["jmf"+i].image.getBytesTotal())*100) + " %";
if (this["jmf"+i].stats.pourcent.text == "100 %") {this.onEnterFrame = null;
this["jmf"+i].charge.gotoandstop("off");
}
}
on another layer there is a clip jmf that contains stats clip, containing laoding status bar clip and variables
the images are loading, but the variables and loading status bars don’t work at all. i guess this is a mistake in targetting or code, but i can’t find it
if some one can help
thank you for your answers