Mouse Over / Out HTML5 Target

Hi.
I am having problems getting Mouse Over / Out events to work on the HTML5 target. Flash target works fine.

Tried OpenFL versions 2.0.1 and 2.1.3

here is an example of the code:

    this.addEventListener(MouseEvent.MOUSE_OVER, onOver);
    this.addEventListener(MouseEvent.MOUSE_OUT, onOut);
    this.addEventListener(MouseEvent.CLICK, onClick);
    this.buttonMode = true;
    	
    public function onClick(e:MouseEvent):Void
    {
    	click.dispatch(this);
    }
    	
    public function onOver(e:MouseEvent):Void
    {
            trace('RButton onOver');
    }
    	
    public function onOut(e:MouseEvent):Void
    {
            trace('RButton onOver');
    }

Opened an issue here: https://github.com/openfl/openfl/issues/401

Thanks :slight_smile:

Thanks!

Is there a temporary way around this problem like using hitTestObject or Rectangle.intersect() ?

Try stage.getObjectsUnderPoint().