all groups > flash actionscript > march 2005 >
You're in the

flash actionscript

group:

Detect Window Focus using ActionScript?


Detect Window Focus using ActionScript? MasterZorlak
3/31/2005 10:19:12 PM
flash actionscript: All right, so I started a project that so far is coming along well. What I need
to know now is whether or not you can use ActionScript to detect the locus of a
browser window. Something like if window.focus = true(); or if window.focus =
false();. Thanks in advance. :)
Re: Detect Window Focus using ActionScript? MasterZorlak
4/1/2005 3:05:08 PM
:: bump ::
Re: Detect Window Focus using ActionScript? Jan-Paul K.
4/1/2005 8:28:05 PM
Try using fs-commands to report focus-events from the browser to flash:
http://www.moock.org/webdesign/flash/fscommand/

Re: Detect Window Focus using ActionScript? MasterZorlak
4/1/2005 11:12:01 PM
Very cool, that will indeed be useful... The question is, if they disable
javascript in their browser options which is frequently and easily done, then
calling javascript window.focus functions won't work, correct? If they will
still work, than thank you, you found the answer. :) However, I don't see how
they would work with js disabled?
Re: Detect Window Focus using ActionScript? MasterZorlak
4/4/2005 9:37:59 PM
:: bump ::
Re: Detect Window Focus using ActionScript? MasterZorlak
4/5/2005 2:21:42 PM
:: bump ::
AddThis Social Bookmark Button