hi,

and in it I added a button with this.removeMovieClip();
Are you sure?

The code, attached to the main timeline, should be something like:
Actionscript Code:
my_mc.my_btn.onRelease = function()
{
 trace("button clicked");
 myFunction();
}