Pause before function is performed

Hey all,

I have a movieclip that when pressed does stuff. I want the mc to finish playing before the function is executed. Below is the code that I’ve worked with do far.
[COLOR=Blue]
var spinningLogo:Button;
var aboutUs_mc:MovieClip;
var capabilites_mc:MovieClip;
var techExp_mc:MovieClip;
var gallery_mc:MovieClip;
var benefits_mc:MovieClip;
var summary_mc:MovieClip;
var contactUs:MovieClip;

spinningLogo.onRelease = function():Void{
this.gotoAndPlay(“smallLogo”);
this.enabled = false;

pauseMe();

function pauseMe():Void
{
    aboutUs_mc.gotoAndPlay(2);
    capabilities_mc.gotoAndPlay(2);
    techExp_mc.gotoAndPlay(2);
    gallery_mc.gotoAndPlay(2);
    benefits_mc.gotoAndPlay(2);
    summary_mc.gotoAndPlay(2);
    contactUs_mc.gotoAndPlay(2);
}
    clearInterval();

};[/COLOR]

Please help me pause the function until the mc is finished playing.

Thanks.