# Infinite menu quick easy help

**URL:** https://forum.kirupa.com/t/infinite-menu-quick-easy-help/148421
**Category:** Uncategorized
**Created:** [May 19, 2005, 6:40pm UTC](https://forum.kirupa.com/t/infinite-menu-quick-easy-help/148421 "2005-05-19T18:40:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tazzmartian](https://avatars.discourse-cdn.com/v4/letter/t/ea5d25/32.png) [@tazzmartian](https://forum.kirupa.com/u/tazzmartian)
#### Post date: [May 19, 2005, 6:40pm UTC](https://forum.kirupa.com/t/infinite-menu-quick-easy-help/148421/1 "2005-05-19T18:40:14Z")

</div>

Here is the fla file. What I want is to have the menu stop when you are not on the menu and then resume scrolling when you go back over it. Thanks

I followed the tutorial and have modifired it to this point so far. Here is the code I used

onClipEvent (load)  
{  
ycenter=238.5;  
speed=1/10;  
}  
onClipEvent (enterFrame) {

var distance=\_root.\_ymouse-ycenter;  
\_y+=(distance\*speed);  
if (\_y \> 0) \_y=-618;  
if (\_y \< -618) \_y=0;  
}

Not sure how to tweak the code to get it to stop with the cursor off. Thanks  
I think i have to use a hittest function or something like that.  
Tazz
