# Stop a movie from playing

**URL:** https://forum.kirupa.com/t/stop-a-movie-from-playing/217029
**Category:** flash
**Created:** [February 22, 2007, 1:20pm UTC](https://forum.kirupa.com/t/stop-a-movie-from-playing/217029 "2007-02-22T13:20:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![superprg](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@superprg](https://forum.kirupa.com/u/superprg)
#### Post date: [February 22, 2007, 1:20pm UTC](https://forum.kirupa.com/t/stop-a-movie-from-playing/217029/1 "2007-02-22T13:20:37Z")

</div>

Hi  
I have this clock which I just want the hand to move only by 180 degrees  
So I have this code like ( not complete code here)

```auto

this.createEmptyMovieClip("myclock", 3);
/*..
...
.. some code here and then
*/

myclock.onEnterFrame = function () {
         myclock.secondsHand._rotation+=1;
         
if( myclock.secondsHand._rotation==180)
{
    trace("Wow");
myclock.stop();
}
}

```

but this is not working

Can someone tell me how I can stop it at 180?  
I do get a trace “Wow” but it keeps on playing  
Thanks
