# Stopping movie on a named frame

**URL:** <https://forum.kirupa.com/t/stopping-movie-on-a-named-frame/3750>\
**Category:** Uncategorized\
**Created:** [September 27, 2001, 9:22pm UTC](https://forum.kirupa.com/t/stopping-movie-on-a-named-frame/3750 "2001-09-27T21:22:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 27, 2001, 9:22pm UTC](https://forum.kirupa.com/t/stopping-movie-on-a-named-frame/3750/1 "2001-09-27T21:22:43Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 28, 2001, 3:46am UTC](https://forum.kirupa.com/t/stopping-movie-on-a-named-frame/3750/2 "2001-09-28T03:46:46Z")

</div>

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

if(varStop == “hulahoop”){  
stop();  
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”;  
}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 30, 2001, 7:10pm UTC](https://forum.kirupa.com/t/stopping-movie-on-a-named-frame/3750/3 "2001-09-30T19:10:40Z")

</div>

thanks that worked…
