# Infinite menu...infinite madness

**URL:** <https://forum.kirupa.com/t/infinite-menu-infinite-madness/28239>\
**Category:** Uncategorized\
**Created:** [August 11, 2003, 6:58pm UTC](https://forum.kirupa.com/t/infinite-menu-infinite-madness/28239 "2003-08-11T18:58:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Halil](https://avatars.discourse-cdn.com/v4/letter/h/7ea924/32.png) [@Halil](https://forum.kirupa.com/u/Halil)\
**Post date:** [August 11, 2003, 6:58pm UTC](https://forum.kirupa.com/t/infinite-menu-infinite-madness/28239/1 "2003-08-11T18:58:41Z")

</div>

Hi there

I’m making a gallery, with a few thumbnails of my Illustrations and I’m using the infinite menu.

It works great, but there’s one thing that bothers me, the fact that it keeps on moving when you’re not scrolling over it, it’s distracting. I would like to have it ease back to 0 when you move your mouse outside its boundaries, I’m loading the .swf into the main interface and I want it to remain visible, but only to scroll when you move inside its boundaries, other wise it’s running wild even when you’re using the rest of the interface.

This is the code for the infinite menu, as it is now:

onClipEvent (load) {  
xcenter = 513;  
speed = 1/10.5;  
}  
onClipEvent (enterFrame) {  
var distance =\_root.\_xmouse-xcenter;  
\_x -= (distance\*speed);  
if (\_x\>0) {  
\_x = -1109;  
}  
if (\_x\<-1109) {  
\_x = 0;  
}  
}

Can someone pleez help me solve this, I’m going slightly mad…Thanks

---

<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:** [August 11, 2003, 7:43pm UTC](https://forum.kirupa.com/t/infinite-menu-infinite-madness/28239/2 "2003-08-11T19:43:32Z")

</div>

You could turn it into a button and instead of using the onEnterFrame handler, switch it to a onRollover event. If you post a fla I will see what I can do.

---

<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:** [August 11, 2003, 9:04pm UTC](https://forum.kirupa.com/t/infinite-menu-infinite-madness/28239/3 "2003-08-11T21:04:06Z")

</div>

I’m having trouble hosting the .fla, can i e-mail it?

---

<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:** [August 11, 2003, 9:12pm UTC](https://forum.kirupa.com/t/infinite-menu-infinite-madness/28239/4 "2003-08-11T21:12:34Z")

</div>

sure. [grandsp5@hotmail.com](mailto:grandsp5@hotmail.com)

---

<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:** [August 11, 2003, 9:40pm UTC](https://forum.kirupa.com/t/infinite-menu-infinite-madness/28239/5 "2003-08-11T21:40:06Z")

</div>

well… i sent it, hope you can figure it out, i’m still trying.

thanks:)
