# How do i stop a movie from playing

**URL:** <https://forum.kirupa.com/t/how-do-i-stop-a-movie-from-playing/2431>\
**Category:** Uncategorized\
**Created:** [April 3, 2002, 11:27pm UTC](https://forum.kirupa.com/t/how-do-i-stop-a-movie-from-playing/2431 "2002-04-03T23:27:14Z")\
**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:** [April 3, 2002, 11:27pm UTC](https://forum.kirupa.com/t/how-do-i-stop-a-movie-from-playing/2431/1 "2002-04-03T23:27:14Z")

</div>

hi guys…

heres my problem. I have two movies ( A and B) playing continously in a scene ( looping). After a few seconds, I would like movie A to stop ( freeze) while movie B continues on.

How do i do this? I tried putting a “stop” action on movie A but it stops everything else including movie B.

thanks!

---

<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:** [April 3, 2002, 11:35pm UTC](https://forum.kirupa.com/t/how-do-i-stop-a-movie-from-playing/2431/2 "2002-04-03T23:35:42Z")

</div>

You could add a counter in frame 1 and do counter++; in the last frame and at the same time check if the counter has reached the wanted value and then stop();

if (counter\>10) {  
stop();  
}  
else {  
gotoAndPlay(1);  
}

OR, if you want it to run for a certain time, add this script on a separate layer:

start = getTimer();  
while (start+xxxx\>now) {  
now = getTimer();  
}

and then tell the movie to stop when the while-script is done.  
(xxxx is the time in milliseconds)

Hope this helps

Achnor

---

<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:** [April 4, 2002, 4:33am UTC](https://forum.kirupa.com/t/how-do-i-stop-a-movie-from-playing/2431/3 "2002-04-04T04:33:33Z")

</div>

thank you very much. i will try it.
