Ok so I got this menu bar which is simply a horizontal bar, and I have it
folowing the mouse on the vertical axis, which all works fine.
However, I ned it to stop at a certain point at the top of the movie,
and a certain point at the bottom of the movie.
Also I need it to stop when the mouse is ontop of the movieclip.
Any Ideas?
Here is the code i am using.
onClipEvent (enterFrame) {
//y movement
my=_root._ymouse;
if (my<_y) {
dy=_y-my;
}
else {
dy=my-_y;
}
moveSpeedy=dy/15;
if (my<_y) {
_y=_y-moveSpeedy;
}
else {
_y=_y+moveSpeedy;
}
}
Thanks in advance.