Make buttons affect movie clip?

hey, i have a question that seems simple, but i dont know how to do it

  • how do I make a few buttons affect a sigle movie clip

say i have a few button and a movie clip on the same level, when i click one button, i want it to go to frame 1, when i click another i want it to go to frame 2, and another to frame 3, how would i go about doing this?

[AS]on (release){
movieClip.gotoAndPlay(frame);
}[/AS]

wow, that simple? thanks

Yep, that simple :stuck_out_tongue: