Hi,
I’m trying to capture a mouse scroll when the mouse is held down. My code is basically:
addEventListener(MouseEvent.MOUSE_DOWN, mdown);
function mdown(e:MouseEvent):void {
stage.addEventListener(MouseEvent.MOUSE_UP, mup);
addEventListener(MouseEvent.MOUSE_WHEEL, mwheel);
}
function mup(e:MouseEvent):void {
stage.removeEventListener(MouseEvent.MOUSE_WHEEL, mwheel);
}
function mwheel(e:MouseEvent):void {
trace("WHEEL IS SPUN");
}
But it appears that Flash can detect only 1 mouse event on one displayobject. Is there anyway around this?
Regards