# Array AUTO

**URL:** https://forum.kirupa.com/t/array-auto/213788
**Category:** Uncategorized
**Created:** [January 23, 2007, 7:13am UTC](https://forum.kirupa.com/t/array-auto/213788 "2007-01-23T07:13:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jju](https://avatars.discourse-cdn.com/v4/letter/j/e99b99/32.png) [@jju](https://forum.kirupa.com/u/jju)
#### Post date: [January 23, 2007, 7:13am UTC](https://forum.kirupa.com/t/array-auto/213788/1 "2007-01-23T07:13:05Z")

</div>

this is my code for photogallery.there will be 61 images loaded in this array.

how can i make an AUTO button which will make a slideshow,showing all the images in array?

arrayrow = new Array()

arrayrow=[  
[“00.jpg”,“0”,“sajkad”,“hjsgadhj”],  
[“01.jpg”,“0”,“kjsdkjds”,“kdsajdsa”],  
[“02.jpg”,“0”,“jksadhjksahd”],  
[“03.jpg”,“0”,“jkdshkjadhskj”],  
[“04.jpg”,“0”,“skljdasjl”],  
[“05.jpg”,“0”,“ajhads”],  
[“06.jpg”,“0”,“March 2005”,“kulki”],  
[“07.jpg”,“Manually Center Imported Images”,“0”],  
[“08.jpg”,“Easy to Use”,“April 2005”,“I0”],  
[“009.jpg”,“Import External SWF Files”,“April 2005”,“0”],  
[“10.jpg”,“Add or Remove Pictures with Ease!”,“0”],  
[“11.jpg”,“Half Dome in Winter”,“January 2005”,“2”]

];

for(i=0;i\<arrayrow.length ;i="" targetin.\_alpha=“100;” forward.forward.onpress=“function()” {="" if="" (counternumber=""\>\<arrayrow.length !fadeimagein="" &="" !fadeimageout="" fadeimageout=“true;” counternumber="" counterdisplay=“CounterNumber;” }="" back.back.onpress=“function()” {="" if="" (counternumber=""\>1 && !FadeImageIn && !FadeImageOut) {  
FadeImageOut = true;  
CounterNumber–;  
CounterDisplay = CounterNumber;  
}

}  
onEnterFrame = function() {

if (TargetIN.\_alpha\>10 && FadeImageOut) {  
TargetIN.\_alpha -= 10;  
}

if (TargetIN.\_alpha\<10) {  
loadMovie((arrayrow[counternumber-1][0]), TargetIN);  
correct = (arrayrow [counternumber-1][0]);  
PicDate = (arrayrow[counternumber-1] [2]);  
\_level0.correct = (arrayrow [counternumber-1][3]);  
PageTotal = (arrayrow.length);  
CounterDisplay = (counternumber);

FadeImageOut = false;  
FadeImageIn = true;  
}  
if (TargetIN.\_alpha\<100 && FadeImageIn && !FadeImageOut) {  
TargetIN.\_alpha += 10;  
} else {  
FadeImageIn = false;  
}  
if (CounterDisplay\>61) {  
CounterDisplay = 61;  
}  
}  
}  
}
