# Problem with infinite menu

**URL:** <https://forum.kirupa.com/t/problem-with-infinite-menu/108215>\
**Category:** Uncategorized\
**Created:** [April 22, 2004, 5:49pm UTC](https://forum.kirupa.com/t/problem-with-infinite-menu/108215 "2004-04-22T17:49:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Azazel](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Azazel](https://forum.kirupa.com/u/Azazel)\
**Post date:** [April 22, 2004, 5:49pm UTC](https://forum.kirupa.com/t/problem-with-infinite-menu/108215/1 "2004-04-22T17:49:11Z")

</div>

Hi all—

—K, here’s the thing. I got some help making the infinite menu stop when u rollover it… but now, u can’t click the buttons in the inf menu.

Here comes the AS

```auto
onClipEvent (load){
	xcenter=500;
	speed=1/100;
}
onClipEvent (enterFrame){
	var distance=_root._xmouse-xcenter;
	_x+=(distance*speed);
}
onClipEvent (enterFrame){
	var distance=_root._xmouse-xcenter;
	_x+=(distance*speed);
	if (_x > 0) _x=-1875;
	if (_x < -1875) _x=0;
}
on (rollOver){
	speed=0;
}
on (rollOut){
	speed=1/100;
}

```

ALSO! How can i make a sort of ease function when you roll over it?

U can see it in action here  
[http://www.frameset.se/raw/galleri/galleri2.htm](http://www.frameset.se/raw/galleri/galleri2.htm)

Anyone got any idea what i have to add or change in the AS?

:party:
