# \[F5\]ARG! Scrolling menu! Guru help

**URL:** https://forum.kirupa.com/t/f5-arg-scrolling-menu-guru-help/6665
**Category:** Uncategorized
**Created:** [October 13, 2002, 8:21pm UTC](https://forum.kirupa.com/t/f5-arg-scrolling-menu-guru-help/6665 "2002-10-13T20:21:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kornkid8281](https://avatars.discourse-cdn.com/v4/letter/k/c67d28/32.png) [@kornkid8281](https://forum.kirupa.com/u/kornkid8281)
#### Post date: [October 13, 2002, 8:21pm UTC](https://forum.kirupa.com/t/f5-arg-scrolling-menu-guru-help/6665/1 "2002-10-13T20:21:53Z")

</div>

ok here’s my prob:

i want to make one of those menu’s that when you rollOver it moves to left or right depending on the position of the mouse. for an example of what i mean look at lostinbeta’s footer. i want it kinda like that except it should keep scrolling, if you know what i mean. i’m sure you’ve all seen one before, so if you guys have any ideas, that would be awesome!

---

<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 14, 2002, 6:56am UTC](https://forum.kirupa.com/t/f5-arg-scrolling-menu-guru-help/6665/2 "2002-10-14T06:56:32Z")

</div>

you will need to test the position of the mouse using. clip.\_xmouse. then move the clip menu accordingly.

for example, add this to the movieclips enterFrame event to continuously check the mouse position.

if(this.\_xmouse \> 200) this.\_x+=2;  
if(this.\_xmouse \< 175) this.\_x-=2;

so when the mouse is in the upper 200 pixels of the clip, the clip will move 2 pixels per frame to the right. is in the lower 175 pixels of the movieclip, the clip will move to the left.

also, if you dont want the clip to keep scrolling off the screen you would need to put.

//move to the right  
if((this.\_xmouse \> 200) && (this.\_x \< 210)) this.\_x-=2;  
if((this.\_xmouse \< 175) && (this.\_x+this.\_width) \> 160)) this.\_x+=2;

the && means AND

---

<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 14, 2002, 6:57am UTC](https://forum.kirupa.com/t/f5-arg-scrolling-menu-guru-help/6665/3 "2002-10-14T06:57:32Z")

</div>

where you see those symbols, its supposed to be “0” followed by “)”

---

<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 14, 2002, 7:07am UTC](https://forum.kirupa.com/t/f5-arg-scrolling-menu-guru-help/6665/4 "2002-10-14T07:07:37Z")

</div>

eron\> You can disable the smilies when you have that problem (I agree that it is a pain…)

kornkid\> Thanks for using the [F5] thinggy 🙂 Do you want to do [something like that?](http://membres.lycos.fr/museebranly/flash/infinite.html)

pom :cowboy:

Edit: Hmm, my host sucks so if you can’t access the page, post back and I’ll mail you the tute.
