Stopping movie on a named frame

i have a movie clip that i want to play and stop using buttons. i am trying to make the movie play until it reaches a named frame defined by the button but with not much luck. i cant have stops on the time line as this doesnt give me the right effect.

any ideas?

in the frame you want it to (sometimes) stop in:

if(varStop == “hulahoop”){
varStop = 0; // this is if you want to reset the variable
// otherwise delete this line

then have a button that you want to trigger the stop with:

on (release){
varStop = “hulahoop”;

thanks that worked…