Mouse Wheel Scroll
var mouseListener:Object = new Object();
mouseListener.onMouseWheel = function(delta) {
trace(delta/3);
//result is 1 for up and -1 for down
}
Mouse.addListener(mouseListener);
var mouseListener:Object = new Object();
mouseListener.onMouseWheel = function(delta) {
trace(delta/3);
//result is 1 for up and -1 for down
}
Mouse.addListener(mouseListener);
Posted by Matt Maxwell at 4:07 PM
1 comment:
Thanks!
Iv'e implemented in the onMouseWheel function the following code:
var scrollAction = (delta / 3 == 1)?scrollUp():scrollDown();
Simple and working!
Post a Comment