1 Reply Latest reply on Feb 17, 2009 12:44 PM by Gregory Lafrance

    Trouble with event listener mouse click

      So I have this class that extends Canvas lets call it class B.

      I have class A that uses B and in A it has 2 eventlisteners.

      B.addEventListener(MouseEvent.CLICK, mouseClick);
      B.addEventListener(MouseEvent.MOUSE_MOVE, mouseMove);

      The MOUSE_MOVE one works exactly as I want but the Click one doesn't seem to register a click when I mouse click in the app.

      Now if I just add it to class A

      addEventListener(MouseEvent.CLICK, mouseClick);

      It works but I want it added to class B. Why would the Click one not work when the Move one does? I've tried adding with true/false useCapture and still does not work. Not sure how to go about debugging this.


      Another thing, if I comment out MOUSE_MOVE but leave Mouse.Click then it will work, so I can't get both working at teh same time.