Loading more than one random clip?

Heres the deal. I’ve found tutorials that show how to randomly load from a selection of movie clips. My problem is, I have two clips that load on top of each other. Ones a blurred image, the other is a clear, and when you move a mask over the image, it goes from blurry to clear. Right?

But I want a different image to load everytime. Problem is that I need both the random blurry and clear pictures to be the same! No point moving your mouse over a blurred picture of a mountain only to find a clear river underneath, right?

If you give the code that randomly selects mc’s, we can addapt it more easily :).

This is the code I found…

[size=2]filename = [“circular.swf”, “vibration.swf”, “random_movement.swf”]; path = “http://www.kirupa.com/developer/actionscript/animation/”; i = filename.length; k = Math.floor(Math.random()*i); loadMovie(path+filename[k], movieTarget);[/size]

Try this:

filename = [["circular.swf", "circular2.swf"], ["vibration.swf", "vibration2.swf"], ["random_movement.swf", "random_movement2.swf"]];
path = "http://www.kirupa.com/developer/actionscript/animation/";
i = filename.length;
k = Math.floor(Math.random()*i);
loadMovie(path+filename[k][0], movieTarget);// this load the first
loadMovie(path+filename[k][1], movieTarget2);// this load the first

http://www.kirupaforum.com/forums/showthread.php?t=69275

scotty(-: