Referance a dynamicly created movie clip

using this code:

this.createEmptyMovieClip("myMovieClip", 10);

and then make that movie clip a button. I know it has to be in how I referance it but I can not seem to figure it out.
I can make it load an image but can not make it clickable. Here is that total code that I am using:

 
this.createEmptyMovieClip("myMovieClip", this.getNextHighestDepth(), {_x:100, _y:100});;
myMovieClip.loadMovie("[http://www.macromedia.com/images/shared/product_boxes/80x92/studio_flashpro.jpg](http://www.macromedia.com/images/shared/product_boxes/80x92/studio_flashpro.jpg)");
//This is the part that does not work
myMovieClip.onRelease = function(){
trace("button hit")
}