# Problem with onRelease

**URL:** https://forum.kirupa.com/t/problem-with-onrelease/135740
**Category:** Uncategorized
**Created:** [January 29, 2005, 11:09pm UTC](https://forum.kirupa.com/t/problem-with-onrelease/135740 "2005-01-29T23:09:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![veraxoxo](https://avatars.discourse-cdn.com/v4/letter/v/f19dbf/32.png) [@veraxoxo](https://forum.kirupa.com/u/veraxoxo)
#### Post date: [January 29, 2005, 11:09pm UTC](https://forum.kirupa.com/t/problem-with-onrelease/135740/1 "2005-01-29T23:09:27Z")

</div>

Hi!  
I’m trying to use onRelease for some dynamically created movieclips (thumbnails) so that when they are clicked, they can display an image. Here’s my code:

var myLoadvariable:LoadVars = new LoadVars();  
myLoadvariable.load(“[http://www.flossline.com/vera/imagesload.php](http://www.flossline.com/vera/imagesload.php)”);

myLoadvariable.onLoad = function(success) {  
if (success) {

```
  _global.imageArray = new Array;
  
  imageArray = myLoadvariable.files.split("|");
  
  for(i=0;i&lt;imageArray.length;i++){
	  	
      _root.createEmptyMovieClip("thumbHolder"+i, 200+i);
      loadMovie("myURL"+imageArray*, "thumbHolder"+i);				
}//end for

```

}

If I then try:

thumbHolder1.onRelease=function(){  
//code  
}

the movieclips (thumbnails) do not become clickable.

I think it might be that dynamically created movieclips cannot access their events…but is there another way to do this?
