# onRelease for createEmptyMovieClip

**URL:** <https://forum.kirupa.com/t/onrelease-for-createemptymovieclip/203638>\
**Category:** flash\
**Created:** [October 12, 2006, 6:09pm UTC](https://forum.kirupa.com/t/onrelease-for-createemptymovieclip/203638 "2006-10-12T18:09:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![exboywonder](https://avatars.discourse-cdn.com/v4/letter/e/ad7895/32.png) [@exboywonder](https://forum.kirupa.com/u/exboywonder)\
**Post date:** [October 12, 2006, 6:09pm UTC](https://forum.kirupa.com/t/onrelease-for-createemptymovieclip/203638/1 "2006-10-12T18:09:35Z")

</div>

I have an XML file that I am pulling thumbnails from. I would like these thumbnails to be links, but for some reason onRelease does not work on my movie clip created with createEmptyMovieClip.

I have this theory that my onRelease function is being called before my thumbnail image is fully loaded, but I may be completely wrong. Here is some example code of what I am trying to do.

* * *

newThumb = \_root.createEmptyMovieClip(“thumb\_mc”, this.getNextHighestDepth());  
newThumb.loadMovie(“one\_img.jpg”);

newThumb.onRelease = function() {  
this.\_alpha = 50;  
};

* * *

Any help or suggestions would be great! Thanks!
