# Infinite menu

**URL:** https://forum.kirupa.com/t/infinite-menu/186103
**Category:** Uncategorized
**Created:** [April 19, 2006, 1:40am UTC](https://forum.kirupa.com/t/infinite-menu/186103 "2006-04-19T01:40:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Solidus](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@Solidus](https://forum.kirupa.com/u/Solidus)
#### Post date: [April 19, 2006, 1:40am UTC](https://forum.kirupa.com/t/infinite-menu/186103/1 "2006-04-19T01:40:12Z")

</div>

Hey everyone i have this infinite menu that works great just like in the tutorial I was wondering if it was possible to alter the code so that when you rolloff the menu eases to a stop instead of abruptly stopping would that be a pain to do?

onClipEvent (load) {  
xcenter = 480;  
speed = 1/10;  
}  
onClipEvent (enterFrame) {  
if (this.hitTest(\_root.\_xmouse, \_root.\_ymouse, true)) {  
var distance = \_root.\_xmouse-xcenter;  
\_x += (distance\*speed);  
\_x\>0 ? \_x=-697 : \_x\<-697 ? \_x=0 : null;  
}  
}

Any help would be great.  
Thanks,  
Chris
