Hi Everyone… i am having a bit of trouble and am hoping for some feedback.
I am trying, with this code, to first, shuffle the order of the images in the array so their loading sequence is never the same when the page is reloaded.
Then, im trying to have the shuffled array open one at a time, image by image, at a set interval…
Array.prototype.shuffle = function() {
for (i=0; i<this.length; i++) {
var tmp = this*;
var randomNum = random(this.length);
this* = this[randomNum];
this[randomNum] = tmp;
}
};
Sketches.shuffle();
setInterval(LoadSketch,1000);
function LoadSketch() {
for (i=1; i<Sketches.length; i++) {
_root.mc_Sketch.loadClip(Sketches*,"_root.mc_SketchEmpty");
}
}
the array im randomizing and trying to load from includes 18 images… right now, the first image loads, but thats it. The setInterval code is running, but its loading the same sketch every second instead THE NEXT sketch every second. What am i doing wrong? Any help would be greatly appreciated…