# Scroll menu

**URL:** <https://forum.kirupa.com/t/scroll-menu/176932>\
**Category:** Uncategorized\
**Created:** [January 28, 2006, 4:47am UTC](https://forum.kirupa.com/t/scroll-menu/176932 "2006-01-28T04:47:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dirksmith](https://avatars.discourse-cdn.com/v4/letter/d/47e85d/32.png) [@dirksmith](https://forum.kirupa.com/u/dirksmith)\
**Post date:** [January 28, 2006, 4:47am UTC](https://forum.kirupa.com/t/scroll-menu/176932/1 "2006-01-28T04:47:31Z")

</div>

Hi

I’d be grateful for any help in getting a scoll menu to work for a portfolio site.

The problem I’m having is gettin the correct coordinates for the amount of left and right scroll. I’ve tried countless variations and nothing is working - which is getting very frustrating.

the .fla can be found [http://www.dirksmith.com/port\_allianz2.zip](http://www.dirksmith.com/port_allianz2.zip)

Thanx for any input

Dirk

The code I’m using:

panel.onRollOver = panelOver;

function panelOver() {  
this.onEnterFrame = scrollPanel;  
delete this.onRollOver;  
}

var b = stroke.getBounds(\_root);

function scrollPanel() {  
if(\_xmouse\<b.xMin || \_xmouse\>b.xMax || \_ymouse\<b.yMin || \_ymouse\>b.yMax) {  
this.onRollOver = panelOver;  
delete this.onEnterFrame;  
}

```
if(panel._x &gt;= -350) {
    panel._x = -350;
}

if(panel._x &lt;= -820) {
    panel._x = -820;
}

var xdist = _xmouse -250;

panel._x += Math.round(-xdist / 6);

```

}
