# Horizontal scroll menu Help!

**URL:** <https://forum.kirupa.com/t/horizontal-scroll-menu-help/219751>\
**Category:** Uncategorized\
**Created:** [March 19, 2007, 10:51pm UTC](https://forum.kirupa.com/t/horizontal-scroll-menu-help/219751 "2007-03-19T22:51:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cj88](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@cj88](https://forum.kirupa.com/u/cj88)\
**Post date:** [March 19, 2007, 10:51pm UTC](https://forum.kirupa.com/t/horizontal-scroll-menu-help/219751/1 "2007-03-19T22:51:36Z")

</div>

:h:  
Hi there my first post here…

i try to get so it will only scroll when im over the items but if i got the scoller upper left corner somthing it still move i got it in a separate movie clip in a action frame dunno what im doing wrong tbh any idé would like to hear some few idés how i should go on=)

```auto
mouseX = _xmouse;
menuX = menu._x;
if (mouseX > 280) {
 diff = (mouseX-280)/15;
}
if (mouseX < 220) {
 diff = (220-mouseX)/15;
}
if (mouseX <= 250 && menuX <= 56) {
 setProperty("menu", _x, menuX+diff);
}
if (mouseX >= 250 && menuX >= -204) {
 setProperty("menu", _x, menuX-diff);
}
if (menu._x >= 56) {
 menu._x = 56;
} else if (menu._x <= -204) {
 menu._x = -204;   
}
gotoAndPlay(2);

```
