Button functions

How can I direct a button in placed in one mc to play a marked keyframe in another mc.
Heres what I’m tring to do, But this isn’t correct (maybe close?)

on (press) {
gotoAndPlay(_root.animMc, “go”);

}

Thank You.