# Little prob with infinite menu

**URL:** https://forum.kirupa.com/t/little-prob-with-infinite-menu/7381
**Category:** Uncategorized
**Created:** [October 29, 2002, 8:33pm UTC](https://forum.kirupa.com/t/little-prob-with-infinite-menu/7381 "2002-10-29T20:33:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![LippuZz](https://avatars.discourse-cdn.com/v4/letter/l/3d9bf3/32.png) [@LippuZz](https://forum.kirupa.com/u/LippuZz)
#### Post date: [October 29, 2002, 8:33pm UTC](https://forum.kirupa.com/t/little-prob-with-infinite-menu/7381/1 "2002-10-29T20:33:42Z")

</div>

heey guys  
followed the infinite menu tute, and with some help  
from you guys, i made a beauty of a menu.  
it scrools to the left realy nice, and you don’t see any  
break when he “starts over” it’s just one nice circle

the problem starts when i want to scroll to the images  
to right. He just won’t do that. it scrolls till the begin of the movie clip wich, and then stops.

what’s the prob?  
this is the actionscript:

onClipEvent (load) {  
xcenter = 292.5;  
speed = 1/10;  
}  
onClipEvent (enterFrame) {  
var distance = \_root.\_xmouse-xcenter;  
\_x += (distance\*speed);  
if (\_x\>0) {  
\_x = -1543.6;  
}  
if (\_x\<-1543.6) {  
\_x = 0;  
}  
}

can somebody help me plzzz

---

<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: [October 30, 2002, 3:36pm UTC](https://forum.kirupa.com/t/little-prob-with-infinite-menu/7381/2 "2002-10-30T15:36:51Z")

</div>

What do you mean by “i want to scroll to the images to right” exactly? I don’t understand :-\

pom 🙂

---

<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: [October 30, 2002, 4:17pm UTC](https://forum.kirupa.com/t/little-prob-with-infinite-menu/7381/3 "2002-10-30T16:17:50Z")

</div>

I think that with “I want to scroll the images to the right” he means he wants to scroll the images to the right but he can’t cuz it stops…  
I can’t seem to find the problem… :-\

---

<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: [October 30, 2002, 6:49pm UTC](https://forum.kirupa.com/t/little-prob-with-infinite-menu/7381/4 "2002-10-30T18:49:34Z")

</div>

btw make the menu move the opposite direction  
\_x += (distance_speed)_ **-1** ;  
like this.  
More comfortable
