If bytes loaded

I´m doind I small slideshow.
The pictures will be loaded apart, and will have a preloader.
I want to make the slideshow to play only after all the movieclip (pictures) are fully loaded on to the main movie.

How do I do that?

thanks

Something like this might work:
[AS]var clips = [clip1, clip2, …, clipN];
this.createEmptyMovieClip(“preloader”, 9876);
preloader.onEnterFrame = function() {
for (var i=0; i<clips.length; i++) {
var bloaded = clips[****i].getBytesLoaded();
var btotal = clips[****i].getBytesTotal();
if (bloaded>0 && bloaded == btotal) {
clips.splice(i, 1);
}
}
if (!clips.length) {
// start slideshow here
this.removeMovieClip();
}
};[/AS]
Just put the instance names of your MovieClips in the clips Array. :stuck_out_tongue: