# The Infinite Menu - ON DRAG

**URL:** <https://forum.kirupa.com/t/the-infinite-menu-on-drag/320779>\
**Category:** flash\
**Created:** [April 1, 2011, 9:55am UTC](https://forum.kirupa.com/t/the-infinite-menu-on-drag/320779 "2011-04-01T09:55:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![carlhughes23](https://avatars.discourse-cdn.com/v4/letter/c/ecd19e/32.png) [@carlhughes23](https://forum.kirupa.com/u/carlhughes23)\
**Post date:** [April 1, 2011, 9:55am UTC](https://forum.kirupa.com/t/the-infinite-menu-on-drag/320779/1 "2011-04-01T09:55:01Z")

</div>

Hi Peeps,

first time poster eeeek!

I’m looking to create an infinate menu BUT navigating my menu from left to right using drag rather than the position of the mouse.

If there’s any links or tutorials around Pleeeeese let me know.

Hope this makes sense.

Thanks in advance

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