Intercepting system events in HTML5 target

I’d like to intercept system events like sreen orientation change, screen turn on/off etc… from inside the brwser running my application.
How can I do this? Is it possible to listem to this kind of events?

How would you do this in HTML5? I’m not sure there are screen on/off events, and orientation change (I think) is determined only by a page resize

There are no screen on/ff events but there is an event for a changed screen oriëntation:

What is Event.ACTIVATE/DEACTIVATE for? I am a bit confused about the situations when it is triggered…

And how do I intercept it in Haxe/Openfl?

At the moment, you would use js.Browser.window and add an event listener, I think :slight_smile:

Oooooh yes, ok boss!