Play until labelled frame - different frames for dfferent buttons!

Hey chaps,

Just wondering if anyone has any idea how to make a movie clip play UNTIL a certain frame depending on which button is pressed. Logically it would be called playuntilandstop(); if that helps!

Cheers

Sam