Flash random image
Flash random image
Out of context: Reply #6
- Started
- Last post
- 18 Responses
- unfittoprint0
n = 25;
//REFRESH
function refresh(n) {
images = new Array();
for (i=0; i < n; i++) {
images[i] = (i+1)+".jpg";
}
randimages = new Array();
}
//EVENTS
trigger.onPress = function() {
rand = Math.floor(Math.random()*images...
_root.pic.loadMovie("pics/"+imag...
//backup
randimages.push(images[rand]);
//remove image
images.splice(rand, 1);
//RESTART
if (images.length == 0) {
refresh(n);
}
};
//START
refresh(25);