Question regarding one of the live tutorials

Hello there,

I had a question regarding one of the Flash tutorials from this site: “Loading Random Movies”.

The code was something like this:


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);

I was wondering if you guys would care and show me how could you put a condition to check what was the last .swf opened, so that when you refresh the page, you will not get the same video as the last one?

Thank you in advance, and sorry if by any chance I didn’t post in the right place … or duplicated the question (I did some search but didn’t found anything… regarding this tutorial).