onRelease with createEmptyMovieClip("picture", 1);

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.