I currently have a Nav that I am working on that will follow the mouse’s _y position. I am wanting to have bounds set that keep the nav in between certain top _y and bottom _y, but am lost on how to do it.
I have tried applying the same techniques that I would to create bounds for a Dragging menu (define top and bottom bounds) but it didn’t work with the mouse position.
Here is the code so far that makes the menu follow the mouse:
speed = 25;
menu_mc.onEnterFrame = function () {
target_y = _root._ymouse - this._y;
this._y = this._y + (target_y/speed);
}
Any help would be appreciated.
Thanks,
Michael