Right now I have an array that shuffles itself, and pulls images from the library, to have a transition dissolve effect. It works great, and I have it automatically change images every 5 seconds. However, I want to add captions to the images, that will load into a dynamic text box. Now since the array is shuffled, I completely lost my brain. I know it is probably simple … but any ideas? Here is an example of my current array, and how it shuffles …
Array.prototype.shuffle=function(){
var len=this.length;
for (l=0; l<len; l++) this.splice(random(this.length),0,this.splice(random(this.length), 1));
};
var images:Array = new Array();
images[0] = "cotm1";
images[1] = "cotm2";
images[2] = "cotm3";
images[3] = "cotm4";
images.shuffle();
trace(images);
Any ideas? Thanks in advance :]