Search code examples
flashdevelophaxecreatejs

Why onMouseUp is not fired?


I tried a simple example for createjs, yet, the onMouseUp event is not fired, what would be the reason?

Here is the example I tried


Solution

  • I am not 100% sure, but I don't know if that syntax will work:

    _stage.onMouseUp = stageClickHandler;
    

    I always prefer to add an event listener in Haxe:

    _stage.addEventListener(MouseEvent.MOUSE_UP, stageMouseUpHandler);