Code outside btn

okay ive made a movieclip and i am putting absolutly all the code for the entire swf in it. Everythings been doing good so far except whats the code for a button. This is such an easy problem but for some reason i just cant remember how.
Clarify: i need a release code for outside the button.

myButton.onRelease = function () 
{
    trace ("onRelease called");
};