# Can't get 'mc.onRelease' to work

**URL:** <https://forum.kirupa.com/t/cant-get-mc-onrelease-to-work/148035>\
**Category:** Uncategorized\
**Created:** [May 16, 2005, 5:50pm UTC](https://forum.kirupa.com/t/cant-get-mc-onrelease-to-work/148035 "2005-05-16T17:50:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henxon](https://avatars.discourse-cdn.com/v4/letter/h/51bf81/32.png) [@Henxon](https://forum.kirupa.com/u/Henxon)\
**Post date:** [May 16, 2005, 5:50pm UTC](https://forum.kirupa.com/t/cant-get-mc-onrelease-to-work/148035/1 "2005-05-16T17:50:10Z")

</div>

Hi

I want to be able to do something when I click my large image (which is placed inside the mc _image_). The _thumb.onRelease_ works, and when I click on it, a large image appears. But I want to be able to click on that image too! How can I do that? Here’s my code:  
[AS]  
function loadThumb() {  
for (i=0; i\<size; i++) {  
var thumb = this.createEmptyMovieClip(“thumbnail”+i, i);  
thumb.holder = thumb.createEmptyMovieClip(“holder”, 1);  
thumb.\_x = i_50;  
thumb.pic = imgFolder+imgArray_;  
makeThumb(thumb.holder, thumb.pic, i);

```
            thumb.onRelease = function() {
             var image = _root.createEmptyMovieClip("image", 1500+i);
             image.holder = image.createEmptyMovieClip("holder", 1);
             image._x = image._y = 50;
             image.holder = image.loadMovie(this.pic);
                    
             image.onRelease = function(){
                 trace("Pressed large image");
                    };
            };
    }

```

}

function makeThumb(th, pic, depth) {  
th.loadMovie(pic);  
var temp = this.createEmptyMovieClip(“temp”, 999+depth);  
temp.onEnterFrame = function() {  
if (th.\_width\>0 && th.\_height\>0 && th.getBytesLoaded()==th.getBytesTotal()) {  
//layer ‘preloader’  
imgLoaded(“add”);  
th.\_width = 50;  
th.\_height = 50;  
delete this.onEnterFrame;  
}  
};  
}[/AS] regards, henxon
