PDA

View Full Version : Why do mouse events trigger twice?



jingman
July 7th, 2003, 02:31 AM
I have some simple script:

Mouse.addListener(_root);

_root.onMouseDown = function(){
trace("bangarang");
}

I debug, and when I press the mouse, it traces TWICE! Why is this? (Does the same thing for onMouseUp).

lostinbeta
July 7th, 2003, 02:39 AM
You don't need to add a mouse listener for this action.

_root.onMouseDown = function() {
trace("bangarang");
};

jingman
July 7th, 2003, 02:40 AM
:) thanks LIB

lostinbeta
July 7th, 2003, 02:41 AM
No problem :)