# Please help with scrolling menu

**URL:** <https://forum.kirupa.com/t/please-help-with-scrolling-menu/141766>\
**Category:** Uncategorized\
**Created:** [March 22, 2005, 11:05pm UTC](https://forum.kirupa.com/t/please-help-with-scrolling-menu/141766 "2005-03-22T23:05:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThePuzzleMaster](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/thepuzzlemaster/32/972_2.png) [@ThePuzzleMaster](https://forum.kirupa.com/u/ThePuzzleMaster)\
**Post date:** [March 22, 2005, 11:05pm UTC](https://forum.kirupa.com/t/please-help-with-scrolling-menu/141766/1 "2005-03-22T23:05:22Z")

</div>

So eventually I’d like to get a menu to scroll inside a masked area. I created this to kind of play around with it and see if it would work. The problem is I need the menu\_mc movie clip to move to the left when I move the mouse to the right, and to the right when I move the mouse to the left.

I know that I’ve seen some great menus like this before, but I can’t remember where. If anyone could help me out or could point me in the direction of a tutorial, that’d be swell!

thanks!

If you need to see the .fla, just let me know and I’l upload it…

My as:

```auto
var speed:Number = 5;
var menuSize:Number = menu_mc._width;
var menuMiddle:Number = menu_mc._x;
var maskSize:Number = mask._width;
var center:Number = Stage.width/2;
menu_mc.onEnterFrame = function() {
	var x:Number = _root._xmouse;
	
	if (x>=(menuMiddle+((menuSize-maskSize)/2))) {
		x = (menuMiddle+((menuSize-maskSize)/2));
	}
	if (x<=(menuMiddle-((menuSize-maskSize)/2))) {
		x = (menuMiddle-((menuSize-maskSize)/2));
	}
	this._x += (x-this._x)/speed;
};

```
