# Adding Thumbnails

**URL:** <https://forum.kirupa.com/t/adding-thumbnails/192854>\
**Category:** Uncategorized\
**Created:** [July 2, 2006, 1:56am UTC](https://forum.kirupa.com/t/adding-thumbnails/192854 "2006-07-02T01:56:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![staceyzavadil](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@staceyzavadil](https://forum.kirupa.com/u/staceyzavadil)\
**Post date:** [July 2, 2006, 1:56am UTC](https://forum.kirupa.com/t/adding-thumbnails/192854/1 "2006-07-02T01:56:51Z")

</div>

Hi Everyone,  
I just successfully did this tutorial  
[http://www.kirupa.com/developer/mx/photogallery.htm](http://www.kirupa.com/developer/mx/photogallery.htm)  
and now I want to add thumbnails… (the xml one is way beyond me)  
I made a thumbnail and made it a button just like the next and prev buttons which have the following actionscript code

on (release) {  
\_root.changePhoto(1);   
}

my question is what actionscript code to I attach to the thumbnail to get it to bring up the proper photo? I tried changing the (1) to (photoName.jpg) as that would make the most sense to me!!! I tried everything… does anyone know what to do?
