Skip to main content
Participant
June 6, 2009
Question

onMouseWeel not working

  • June 6, 2009
  • 1 reply
  • 1076 views

Hi,

I am not sure what am I doing wrong, but I can't get onMouseWeel to work. I try this and get nothing:

mouseListener = new Object();
mouseListener.onMouseWheel = function(delta) {
trace("weel "+delta)
   clip_mc._xscale += delta;
    clip_mc._yscale += delta;
}
mouseListener.onMouseDown = function() {
trace("down")

}
Mouse.addListener(mouseListener);

The onMouseDown does work, but not the onMouseWeel...

Any help ?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
June 6, 2009

there's nothing wrong with your code.

click on the stage before testing.

Participant
June 6, 2009

hi kglad,

I click the mouse I get the "down" from the trace. Then, when I roll the mouse weel i get nothing...

kglad
Community Expert
Community Expert
June 7, 2009

you're testing on a non-apple os, correct?  if so, post a link to a test fla that contains only that code and fails.