Press button with AS?

I know theres a way to do this but i dont remember how again. Anybody know how to press a button with AS, something like this:

onEnterFrame = function(){
   if (yourmom = "hot"){
      somebutton.press //<- this
   }
}