I found actually a interesting thing
http://blog.flashgen.com/2005/10/31/...d-mouse-traps/
propably like this:So I was having a little shufty through the AS3 Language Reference at the weekend and I came across this in the class flash.display.Stage
activate: The activate event occurs when Flash Player has gained OS focus and is becoming active.
deactivate: The Stage object generates the deactivate event when the Flash Player is losing operating system focus and is becoming inactive.
[edit]yes it seems to be used like this- works like a charm in the IDE... browsers are next[/edit]PHP Code:stage.addEventListener(Event.ACTIVATE, functionUnpause);
stage.addEventListener(Event.DEACTIVATE, functionPause);
the official Adobe help doesn´t say much- in fact its rather hidden
http://livedocs.adobe.com/flash/9.0/...lay/Stage.html
now this would be interesting to check if it even works with the wMode- I´m including it right now in a engine - pausing it if there is no focus. Will test it later if it works in FF,Opera and Chrome with and without wMode




Reply With Quote