# Need Help with Scrolling Menu (runs off stage)

**URL:** <https://forum.kirupa.com/t/need-help-with-scrolling-menu-runs-off-stage/276942>\
**Category:** flash\
**Created:** [December 5, 2008, 7:51am UTC](https://forum.kirupa.com/t/need-help-with-scrolling-menu-runs-off-stage/276942 "2008-12-05T07:51:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bumble\_bee](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bumble\_bee](https://forum.kirupa.com/u/bumble_bee)\
**Post date:** [December 5, 2008, 7:51am UTC](https://forum.kirupa.com/t/need-help-with-scrolling-menu-runs-off-stage/276942/1 "2008-12-05T07:51:03Z")

</div>

Can someone please help. This scrolling menu runs off the page and I don’t know how to keep it in the boundaries of the stage. Any suggestions? I’ll take anything. **thank you!**

\*\* Here is the AS and I have attached the file below!  
\*\*  
var myShape:Shape = new Shape()  
myShape.graphics.beginFill(0x7E00E3);  
myShape.graphics.drawRect(50,10,450, 100)

addChild(myShape)  
menu\_mc.mask=myShape

stage.addEventListener(Event.ENTER\_FRAME, movemenu);  
function movemenu(myevent:Event):void {  
menu\_mc.x = menu\_mc.x + (0.5 \* myShape.width - mouseX) / 40;  
}
