# Stopping my movie clip at \_x = o

**URL:** https://forum.kirupa.com/t/stopping-my-movie-clip-at--x-o/45562
**Category:** Uncategorized
**Created:** [March 15, 2004, 11:36pm UTC](https://forum.kirupa.com/t/stopping-my-movie-clip-at--x-o/45562 "2004-03-15T23:36:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jenwhitie](https://avatars.discourse-cdn.com/v4/letter/j/9fc348/32.png) [@jenwhitie](https://forum.kirupa.com/u/jenwhitie)
#### Post date: [March 15, 2004, 11:36pm UTC](https://forum.kirupa.com/t/stopping-my-movie-clip-at--x-o/45562/1 "2004-03-15T23:36:09Z")

</div>

I have made a modified infinate menu, and I would like to make it stop at the begining and the end.

Here is the code that I have so far. What can I add to it to make it happen?

onClipEvent (load)  
{  
speed=-1;  
}

onClipEvent (enterFrame)  
{  
\_x+=(speed);  
if (\_x \> 0) \_x=-4603.3;  
if (\_x \< -4603.3) \_x=0;  
}
