Random images loader

ok, so i got it to work, i have this code…
[AS]
aMovies = new Array();
aMovies[0] = “imagenes/imagen1.jpg”;
aMovies[1] = “imagenes/imagen2.jpg”;
aMovies[2] = “imagenes/imagen3.jpg”;
aMovies[3] = “imagenes/imagen4.jpg”;
aMovies[4] = “imagenes/imagen5.jpg”;
aMovies[5] = “imagenes/imagen6.jpg”;
aMovies[6] = “imagenes/imagen7.jpg”;
aMovies[7] = “imagenes/imagen8.jpg”;
aMovies[8] = “imagenes/imagen9.jpg”;
pelicula = aMovies[random(9)];
contenedor.loadMovie(pelicula);
[/AS]

How can i automatically create a preloader when each image is loading…???

Hoi

here just put a text boxs on the root timeline called “loadText”

//you random script
contenedor.createEmptyMovieClip(“holder”, 1).loadMovie(pelicula);
contenedor.onEnterFrame = function() {
_root.loadText.text = Math.round(_root.getBytesLoaded()/_root.getBytesTotal()*100)+"%";
if (this.holder.getBytesLoaded()>=this.holder.getBytesTotal() && this.holder.getBytesTotal()>10) {
//your script that runs after the image is loaded
delete this.onEnterFrame;
}
};

:wink:

and if i want a small preloading bar???

ohh, i tested it, and it doesnt work… :frowning:

ok i will see if i can make an example :wink:

please :smiley:

Here…

:wink:

thankyou :slight_smile: