1 Reply Latest reply on Apr 27, 2007 4:41 AM by muzikathzi

    false target of mouseEvent

    muzikathzi Level 1
      Hi

      I´ve a Problem with the target of an mouseevent.
      I build my own customButtonClass witch extends Canvas and has two images added.
      cButton = new customButtonClass();
      ...
      cButton.addEventListener(MouseEvent.CLICK, activateButton);
      in the function activateButton I want to get a reference to the button class but event.target is one of the images.

      Is there a way to get the object that really listens to the event?

      thanks for any hint!

      muzi