# onRelease Does not Work When Loading External JPEG?

**URL:** <https://forum.kirupa.com/t/onrelease-does-not-work-when-loading-external-jpeg/248112>\
**Category:** flash\
**Created:** [January 3, 2008, 11:18pm UTC](https://forum.kirupa.com/t/onrelease-does-not-work-when-loading-external-jpeg/248112 "2008-01-03T23:18:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zimick](https://avatars.discourse-cdn.com/v4/letter/z/848f3c/32.png) [@zimick](https://forum.kirupa.com/u/zimick)\
**Post date:** [January 3, 2008, 11:18pm UTC](https://forum.kirupa.com/t/onrelease-does-not-work-when-loading-external-jpeg/248112/1 "2008-01-03T23:18:46Z")

</div>

I want to display several thumbnails, each loaded as an external jpeg. When clicked, I want the thumbnail to launch into a video.

I am running into a problem after loading the thumbnail images. The onRelease method no longer works. However, if I leave out the loadMovie line, the onRelease method does work for the image holders.

```auto

// creates the empty movie clip to hold the thumbnails
_root.createEmptyMovieClip("thumbs", 200);
        
        for(i=0; i<videoData.length; i++)
            {
                // attaches a movie instance for the image holder
                var curThumb = thumbs.attachMovie("thumbnailHolder", "thumbnail_"+i, 300-i);
                curThumb._x = 90*i;
                curThumb.id = i;
                curThumb.loadMovie(videoData*.thumbnail);

                // this does not work if the loadMovie method is used
                curThumb.onRelease = function()
                    {
                        launchThumb(this);
                    }
            }

```

Can anyone help me understand why this is happening? Thanks!
