I know I can detect flash gaining and losing focus with these callbacks:
stg.addEventListener( Event.DEACTIVATE, deactivateCb, false, 0, true );
stg.addEventListener( Event.ACTIVATE, activateCb, false, 0, true );
But is there anyway to directly query flash if it has focus or not?
(Trying to figure out if flash has focus when starting up…)
I’m pretty sure flash never has focus when starting up. It has to be clicked on to gain focus. From there you can store the focus changes and work with them however you like.