Play movie until a certain frame

Hey
I was wondering if this would be possible.

How can u play a movie clip until a certain frame.

Lets say I have some buttons on the main stage. There is a MC on stage, let’s say 100 frames long, which is stopped on frame one.

If you click button1 it plays the clip until it reaches frame 50 of the MC.
If you then click button2 it plays from frame 50 until it gets to frame 90.

If you then press button1 again it plays till the end, loops, and comes to a hault on frame 10.

Make any sence?

Any help would be really appreciated
Thanks
:b: