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
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 >= -350) {
panel._x = -350;
}
if(panel._x <= -820) {
panel._x = -820;
}
var xdist = _xmouse -250;
panel._x += Math.round(-xdist / 6);
}