# Stopping movieclips in its path

**URL:** <https://forum.kirupa.com/t/stopping-movieclips-in-its-path/275788>\
**Category:** Uncategorized\
**Created:** [November 18, 2008, 5:35pm UTC](https://forum.kirupa.com/t/stopping-movieclips-in-its-path/275788 "2008-11-18T17:35:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmchamley](https://avatars.discourse-cdn.com/v4/letter/d/cab0a1/32.png) [@dmchamley](https://forum.kirupa.com/u/dmchamley)\
**Post date:** [November 18, 2008, 5:35pm UTC](https://forum.kirupa.com/t/stopping-movieclips-in-its-path/275788/1 "2008-11-18T17:35:32Z")

</div>

this is the script i have happening on a frame. i have 2 other clips that run next to it - conveyor belt styleee.

function moveClip3() {  
if (myClip3\_mc.\_x \< 1200) {  
myClip3\_mc.\_x += 0.5; // move the clip 1 px to the right  
} else {  
myClip3\_mc.\_x = -150;  
}  
}  
myInterval = setInterval(moveClip3, 5);

this works well. it goes to where i want then returns to an x value and the whole thing starts again. great. i know want to add button funtionality in that when i put my mouse over any of the clips all the clips stop moving. when i remove the mouse from the clip then all start moving again. this should happen regardless of what clip i rollover.

any takers for this one. i have looked all ove the place but cannot this type of functionality
