# Specifying Thumbs

**URL:** <https://forum.kirupa.com/t/specifying-thumbs/271058>\
**Category:** flash\
**Created:** [September 17, 2008, 9:01pm UTC](https://forum.kirupa.com/t/specifying-thumbs/271058 "2008-09-17T21:01:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cdtheed](https://avatars.discourse-cdn.com/v4/letter/c/c77e96/32.png) [@cdtheed](https://forum.kirupa.com/u/cdtheed)\
**Post date:** [September 17, 2008, 9:01pm UTC](https://forum.kirupa.com/t/specifying-thumbs/271058/1 "2008-09-17T21:01:08Z")

</div>

Hey, Can anyone help me? I’m trying to get each of my thumbs to load an individual picture but I can’t seem to get it working. I have this script that has a trace for each thumb but I don’t know how to actually get the thumb images to load individual pictures.  
I’ve tried using:  
img1.onRelease = function() {  
as a way of talking to each of my thumb pictures but it doesn’t work. If anyone can help I would greatly appreciate it.

this.createEmptyMovieClip(“container”, 1);  
container.\_x = 0;  
container.\_y = 0;

function initClips()  
{  
var imageNumbers:Number = 9;  
for (var i=1; i\<=imageNumbers; i++)  
{  
container.attachMovie(“img”, “img”+i, i);  
myThumb\_mc = container[“img”+i];  
myThumb\_mc.\_x = (i-1) \* myThumb\_mc.\_width;  
myThumb\_mc.\_y = (Stage.height - myThumb\_mc.\_height)/2;  
myMCL.loadClip(“img/thumb” + i + “.jpg”, container[“img”+i], i);//load images into clip  
// Give each thumb a name property.  
// Use this name to load the full size image  
myThumb\_mc.\_name = “img” + i;

```
    // Use an onRelease handler on each thumb to call a function
    myThumb_mc.onRelease = showFullImage;
}

```

}

// Use this function to load the full size image  
function showFullImage()  
{  
var full\_image = this.\_name;  
trace(full\_image);  
myMCL.loadClip(“image1.jpg”, imgCon, i);  
}  
// Place your load movie routine here  
}

initClips();
