# Thumbnail gallery buttons

**URL:** <https://forum.kirupa.com/t/thumbnail-gallery-buttons/176799>\
**Category:** Uncategorized\
**Created:** [January 27, 2006, 12:23am UTC](https://forum.kirupa.com/t/thumbnail-gallery-buttons/176799 "2006-01-27T00:23:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Monkeyspoon](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@Monkeyspoon](https://forum.kirupa.com/u/Monkeyspoon)\
**Post date:** [January 27, 2006, 12:23am UTC](https://forum.kirupa.com/t/thumbnail-gallery-buttons/176799/1 "2006-01-27T00:23:57Z")

</div>

hi

im making an xml generated gallery of thumbnail images. so far i have loaded the xml data and made it so that there is a master movie clip made and then a loop for subsequent thumbs that duplicate that movie clip. as follows…

function callImages() {  
//MAKE FIRST THUMB  
this.createEmptyMovieClip(“thumb”,this.getNextHighestDepth());  
with(thumb){  
loadMovie(image[p]);  
\_x=5  
\_y=5  
\_xscale=50  
\_yscale=50  
}  
//LOOP FURTHER THUMBS  
total=xmlNode.childNodes.length;  
for (p=1;p\<total;p++){  
cell++;  
if (cell==4){  
row++;  
cell=1;  
}  
trace(cell)  
thumb.duplicateMovieClip(“thumb” + p,this.getNextHighestDepth());  
with (\_root[“thumb”+p]) {  
loadMovie(image[p]);  
\_x=cell_170-165  
\_y=row_120-115  
\_xscale=50  
\_yscale=50  
}  
}  
}

my question is how do i make these movie clips act as buttons? i want it so that i can control using AS what happens when each are rolled over and of course what happens when you click one. but they are generated as movieclips not buttons…there’s no such thing as createemptybutton? im so confused, im new to actionscripting

please please please help

/EDIT - im aware that i may be going about this the totally wrong way, is it right to generate a table of thumbnails in this way in the first place?

thanks
