onMouseWheel + Math.round + Boundaries?


I have a movieclip that has a height of 500 px, it starts on _y = 0, now i want to scroll it on integers with Math.round but it won’t work. I also want it to stop scrolling down if he is at the bottom or the top (it behind a mask)

the tween method works fine so let it as it is…

hope somebody can help?

thanks already!

mover = 0
var mouseListener = new Object();
mouseListener.onMouseWheel = function(delta) {
 mover += Math.round(10*delta);
 mcTempHolder.tween("_y", mover, 1);