Actionscript declaring a button's actions in frame

i have my buttons moving all over the screen in animations etc. and those may change in the future, I don’t want to have to reassign actions in every keyframe of the animation for every button. can i just set them in a layer’s actions in a blank frame

like:
MovieClip.prototype.MyClip.on(press){
_root.animation.gotoAndStop(“blah”);
}

thanks =)

Is it a movie clip button or just a regular button?

movieclip that has button actions applied to it :slight_smile:

Not exactly the right syntax. It should look like

myClip.onPress=function(){
  _root.animation.gotoAndStop("blah");
}

it works!
thank you very much!