Make a function for button inside a movie clip

Hi all wise people

I am a noob in AS3, I hv this problem that I’ve tried to work out for his couples days
I was asked to put all my actionscript in only at the main timeline, while I have lots of movie clips that acts as each page in my website.
Each of them has buttons that I need to make them work without put the actionscript inside the movie clip but the main timeline.

I tried to use
movieclip(parent).menu_btn.function();
which is not working

and now I’m trying to use array as a friend suggested me.

var play_buttons:Array = new Array(“menu_btn”, “ok_btn”, “back3_btn”);

stop();

//buttons for menu
for (var i:Number = 0; i<play_buttons.length; i++) {
play_mc.menu_btn[play_buttons*] = function() {
this.gotoAndPlay(“menu”);
};
}

the problem is when i clicked play button and it links to the play page,but it has an intro animation for 2-3 seconds before they reach the menu_btn
that’s why the error come out is that I have a null object since they execute the code b4 it comes to the menu_btn keyframe.

I think that’s my problem,no?
If it is, do u hv any suggestion how I can fix it?

Thanks in Advance