0

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

simo
  • 23,342
  • 38
  • 121
  • 218

1 Answers1

0

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);
Adam Harte
  • 10,369
  • 7
  • 52
  • 85
  • It worked by: stage.addEventListener("stagemouseup", handleMouseUp); do you know why we need stage.enableDOMEvents(true); ?? – simo Mar 15 '13 at 05:16
  • Hmm, not sure about the enableDOMEvents. Maybe try asking that as a separate question. Would be interested to know. – Adam Harte Mar 15 '13 at 05:50