# Infinite menu

**URL:** <https://forum.kirupa.com/t/infinite-menu/24129>\
**Category:** Uncategorized\
**Created:** [June 26, 2003, 10:02am UTC](https://forum.kirupa.com/t/infinite-menu/24129 "2003-06-26T10:02:00Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tiina](https://avatars.discourse-cdn.com/v4/letter/t/5fc32e/32.png) [@Tiina](https://forum.kirupa.com/u/Tiina)\
**Post date:** [June 26, 2003, 10:02am UTC](https://forum.kirupa.com/t/infinite-menu/24129/1 "2003-06-26T10:02:00Z")

</div>

Hi!

Could somebody please look at my file and tell me what is wrong with it?:-\ thank you,

regards: daisy.

file:[download](http://www.in2illusions.com/gallery666.fla)

---

<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:** [June 26, 2003, 11:39am UTC](https://forum.kirupa.com/t/infinite-menu/24129/2 "2003-06-26T11:39:03Z")

</div>

DaisyDee

Saw your post yesterday and worked on it then - I think you’ll find it’s working now 🙂

It was all to do with where you had the mouse triggering left or right movement and also where the scrolling of the menu actually started.

Hope this all helps.

Cello

---

<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:** [June 26, 2003, 11:50am UTC](https://forum.kirupa.com/t/infinite-menu/24129/3 "2003-06-26T11:50:00Z")

</div>

Thank you,  
But in other words in newbie words:(  
what code is left an what code is right + and what or where is the  
" where the scrolling of the menu actually started"?:+) :+)

Thank you:flower:

:Daisy

---

<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:** [June 26, 2003, 11:56am UTC](https://forum.kirupa.com/t/infinite-menu/24129/4 "2003-06-26T11:56:29Z")

</div>

```auto
onClipEvent (load) {
	speed = 1/10;
	xcenter = _x+_width/4;
	xmin = _x-_width/2;
	xmax = _x;
}
onClipEvent (enterFrame) {
	var distance = _root._xmouse-xcenter;
	_x += distance*speed;
	_x = _x<xmin ? xmax : _x>xmax ? xmin : _x;
}

```

Use that code instead, it should work no matter the size or position of the menu. 😉

---

<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:** [June 26, 2003, 11:59am UTC](https://forum.kirupa.com/t/infinite-menu/24129/5 "2003-06-26T11:59:55Z")

</div>

hm…:trout:  
Thank you kax, where did you find that piece of code its great!  
How come its not in the infinite menu tutorial, it will make not only mine but other peoples life easier, then again…nothing is easy in this world:crazy: :crazy:

Thank you kax:love:

regards: Daisy

---

<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:** [June 26, 2003, 12:03pm UTC](https://forum.kirupa.com/t/infinite-menu/24129/6 "2003-06-26T12:03:16Z")

</div>

> _Originally posted by DaisyDee_  
> **where did you find that piece of code its great!**

…I wrote it? 😛

> _Originally posted by DaisyDee_  
> **How come its not in the infinite menu tutorial, it will make not only mine but other peoples life easier…**

That’s a really good question… :-\

And you’re welcome. =)

---

<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:** [June 26, 2003, 2:44pm UTC](https://forum.kirupa.com/t/infinite-menu/24129/7 "2003-06-26T14:44:41Z")

</div>

> \*Originally posted by DaisyDee \*  
> **How come its not in the infinite menu tutorial**  
> Because it’s supposed to work as it is 🙂 But you’re right, that code is much more practical :-\

---

<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:** [June 26, 2003, 2:49pm UTC](https://forum.kirupa.com/t/infinite-menu/24129/8 "2003-06-26T14:49:58Z")

</div>

Does it mean that you’ll edit the code in the tutorial and give me a huge credit, Ilyas? :beam: 😛

Just kidding… the credit is not necessary. 😉

---

<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:** [June 26, 2003, 2:53pm UTC](https://forum.kirupa.com/t/infinite-menu/24129/9 "2003-06-26T14:53:37Z")

</div>

I wish I could, but Kirupa is a bit slow on the updates 😛 [size=1]I’m hope I’m not getting banned for this…[/size]

---

<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:** [June 26, 2003, 2:58pm UTC](https://forum.kirupa.com/t/infinite-menu/24129/10 "2003-06-26T14:58:28Z")

</div>

😛

I guess we’ll have to wait then… :-\

---

<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 28, 2003, 2:02pm UTC](https://forum.kirupa.com/t/infinite-menu/24129/11 "2003-10-28T14:02:56Z")

</div>

Thanks a lot for the above code. It solved my problem where some of my menus were working fine with the Mac but would stop on the PC. This solved it!

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:** [October 28, 2003, 8:00pm UTC](https://forum.kirupa.com/t/infinite-menu/24129/12 "2003-10-28T20:00:33Z")

</div>

Isn’t the search feature just great!? 😛

No problem, visualidea.  
And welcome to kirupa forum!! =)

---

<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 28, 2003, 8:22pm UTC](https://forum.kirupa.com/t/infinite-menu/24129/13 "2003-10-28T20:22:14Z")

</div>

Hey, what does Querétaro mean? I just took Spanish class and was wondering!

---

<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 28, 2003, 8:27pm UTC](https://forum.kirupa.com/t/infinite-menu/24129/14 "2003-10-28T20:27:44Z")

</div>

I don’t know… it’s just the last name of some guy, Santiago de Querétaro (which is the name of a city (and state) here in México). 🙂
