Hi there,

Can anyone help me with this one.

I’m creating a flash movie which loads in randomly selected swf files. These are images and video clips. They follow each other so when one swf file finishes it then tells the next movie to play.

I need several of these movies to be loaded in at the beginning to make sure it runs smoothly.

Does anyone know how to make sure the swf files don’t repeat themselves. As you’ll see from the script I’m using there is nothing to stop clipb loading up the same swf file as clipa.

a = random(3);

if ((a)=1) {

loadMovie("clip01.swf", _root.clipa);

} else if ((a)=2) {

loadMovie("clip02.swf", _root.clipa);

} else if ((a)=3) {

loadMovie("clip03.swf", _root.clipa);

}

b = random(3);

if ((b)=1) {

loadMovie("clip01.swf", _root.clipb);

} else if ((b)=2) {

loadMovie("clip02.swf", _root.clipb);

} else if ((b)=3) {

loadMovie("clip03.swf", _root.clipb);

}

Any help would be much appreciated

Daniel