[Flash8] Help with random attachmovie

Hi there,

I’m using the following code to attach a random movieclip from inside the library.


_root.onLoad = function() {
    ran = Math.round(Math.random()*2+1);
    empty.attachMovie("team"+ran, "", 100)
    trace("team"+ran)
};

I would like the random movie clip to load and once it has finished for another random movie clip to load in its place.

What code would I use to achieve this?

cheers :hugegrin: