# Stop a MC from looping or playing

**URL:** https://forum.kirupa.com/t/stop-a-mc-from-looping-or-playing/198973
**Category:** flash
**Created:** [August 30, 2006, 5:13am UTC](https://forum.kirupa.com/t/stop-a-mc-from-looping-or-playing/198973 "2006-08-30T05:13:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![daytonatkf](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@daytonatkf](https://forum.kirupa.com/u/daytonatkf)
#### Post date: [August 30, 2006, 5:13am UTC](https://forum.kirupa.com/t/stop-a-mc-from-looping-or-playing/198973/1 "2006-08-30T05:13:28Z")

</div>

how to stop a movie clip from playing or looping?

i have main movie clip, i use looping to insert ‘pass’ movie clip into it, in ‘pass’ movie clip, there is a script to make ‘pass’ movie clip to move around, here is the logic

setinterval(move,1)

function move()  
{  
…  
…  
…  
…

```
setinterval(rest,2000)
function rest()
{
 ..............................
 ..............................
 ..............................
 if (pass._y == yyy)
{
 //stop this pass movie clip from looping or moving or interval
}
}

```

}

any idea, thanks
