# Multiple array values?

**URL:** <https://forum.kirupa.com/t/multiple-array-values/227128>\
**Category:** Uncategorized\
**Created:** [May 27, 2007, 11:40am UTC](https://forum.kirupa.com/t/multiple-array-values/227128 "2007-05-27T11:40:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![titter](https://avatars.discourse-cdn.com/v4/letter/t/f0a364/32.png) [@titter](https://forum.kirupa.com/u/titter)\
**Post date:** [May 27, 2007, 11:40am UTC](https://forum.kirupa.com/t/multiple-array-values/227128/1 "2007-05-27T11:40:57Z")

</div>

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 …

```auto
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 :]
