# onRelease with createEmptyMovieClip("picture", 1);

**URL:** <https://forum.kirupa.com/t/onrelease-with-createemptymovieclip-picture-1/222152>\
**Category:** flash\
**Created:** [April 11, 2007, 9:00am UTC](https://forum.kirupa.com/t/onrelease-with-createemptymovieclip-picture-1/222152 "2007-04-11T09:00:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mucho](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@mucho](https://forum.kirupa.com/u/mucho)\
**Post date:** [April 11, 2007, 9:00am UTC](https://forum.kirupa.com/t/onrelease-with-createemptymovieclip-picture-1/222152/1 "2007-04-11T09:00:42Z")

</div>

Hi everyone,

I`m using this code:  
\_root.main.createEmptyMovieClip(“picture”, 1);  
to load pictures in into it.

Once finished looking at it, i`d like the picture to disappear when clicking on the created “picture”.

so far I`ve tried it with this:

\_root.main.picture.onRelease = function() {  
killImage();  
};

and no success.

any ideas?

thanks,  
m.
