# Specifying an image in an array

**URL:** <https://forum.kirupa.com/t/specifying-an-image-in-an-array/129272>\
**Category:** Uncategorized\
**Created:** [November 22, 2004, 12:08am UTC](https://forum.kirupa.com/t/specifying-an-image-in-an-array/129272 "2004-11-22T00:08:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![headbox](https://avatars.discourse-cdn.com/v4/letter/h/7ba0ec/32.png) [@headbox](https://forum.kirupa.com/u/headbox)\
**Post date:** [November 22, 2004, 12:08am UTC](https://forum.kirupa.com/t/specifying-an-image-in-an-array/129272/1 "2004-11-22T00:08:29Z")

</div>

Greetings-

I just completed the image gallery tutorial [here](http://www.kirupa.com/developer/mx/photogallery.htm) (great tutorial!) and I am wondering if there’s a way to have a button tell the array to display a specific image instead of just cycling them sequentially.

The button action script is

[color=RoyalBlue]on (release) {  
\_root.changePhoto(1);  
}

[color=Black]Which tells it to go to the next image defined in the array. What I would like it to do is display a specific image in the array like “01.jpg”

Thanks for your help![/color]  
[/color]
