Random image loader help, Please
Hi all,
I am looking into using a random image loader, to load external image files using the following code:
pic_arr = ["dhi/1", "dhi/2", "dhi/3", "dhi/4", "dhi/5"];
onLoad = function() {
ranNum = Math.floor(Math.random()*pic_arr.length);
randomLoaderMc.loadMovie(pic_arr[ranNum]+".jpg");
};
Does anyone know how I can do this so It will never loads the same image twice in a row?
Many thanks in advance
Rich