I know this is a Flash 5 tut but i was refered to it awhile back when asking the question for mx. So ive followed the tut step by step and the only thing i wanted to change is that i wanted the menu to drag vertically instead of horizontally. I asked about this and someone suggested that i replace the x variables with y variables. I did this but for some reason the “dragger” will not move up and down. Im new to writing action script code but im trying to learn. Here is what i have for the vertical scrolling.
Heres the Tutorial
onClipEvent (load) {
set (yold,_y) ;
}
onClipEvent (enterFrame) {
if (dragging) {
_y = _root.ymouse ;
dydrag = _y - yold ;
yold = _y ;
_root.general._y += 3*dydrag ;
}
}
And here is the code for the horizontal scrolling.
onClipEvent (load) {
set (xold, _x);
}
onClipEvent (enterFrame) {
if (dragging) {
_x = _root._xmouse ;
dxdrag = _x - xold ;
xold = _x ;
_root.general._x += 3*dxdrag ;
}
}
Is there something im missing. Ive made sure that i set the press of a mouse to a variable of 1 and the release to 0. Perhaps its just not that easy to just switch the variables.
Any thoughts.
Yogi