"Basically, the event is onBlur"

Yes, if you've followed the discussion you'd know that onBlur is has been
the attempted solution.  It just doesn't work when Flash has focus ... the
browser seems to miss the onblur if you click on Flash (giving it focus) and
then click outside the window (when the onblur should trigger)

has no one had experience overcoming this?

Tyler

On 11/11/05, Steven Sacks <[EMAIL PROTECTED]> wrote:
>
> There is code out there used to fake modal dialogs in a browser that
> checks
> if a browser window loses focus and forces the window to take focus again.
>
> Really, a google search will help you on your way.  Writing JS isn't too
> difficult if you know AS1.
>
> http://www.eggheadcafe.com/articles/javascript_modal_dialog.asp
>
> Basically, the event is onBlur.
>
> <body onBlur="myLoseFocusFunction();">
>
> function myLoadFocusFunction() {
>         -- tell flash something if you want
>         -- or handle it directly in the browser
>         -- like alert("You have attempted # times to exit the test");
>         -- and on the threshold, you can load another page that doesn't
> have
>         -- the flash anymore
> }
>
> I'm sure there's an easy solution to what you're trying to do.
>
> -Steven
>
>
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf
> > Of Tyler Wright
> > Sent: Friday, November 11, 2005 2:47 PM
> > To: Flashcoders mailing list
> > Subject: Re: [Flashcoders] Detecting when a swf loses focus
> >
> > We are looking for a solution to this issue as well. It would
> > be a great
> > help in DRM (Digital Rights Management) to keep not just test
> > takers honest.
> >
> > Anyone yet have a strong enough knowledge of the browser and
> > JavaScript to
> > crack this one?
> >
> > Tyler
> >
> > On 11/8/05, Muzak <[EMAIL PROTECTED]> wrote:
> > >
> > > Mmmm, mind explaining the buggy, unstable and CPU hogging?
> > >
> > > If you have any problems with screenweaver you can always
> > join the mailing
> > > list or visit the forum:
> > > http://osflash.org/mailman/listinfo/screenweaver_osflash.org
> > > http://www.screenweaver.org/forums/index.php
> > >
> > > regards,
> > > Muzak
> > >
> > > ----- Original Message -----
> > > From: "Steven Sacks" <[EMAIL PROTECTED]>
> > > To: "'Flashcoders mailing list'" <flashcoders@chattyfig.figleaf.com>
> > > Sent: Tuesday, November 08, 2005 11:00 PM
> > > Subject: RE: [Flashcoders] Detecting when a swf loses focus
> > >
> > >
> > > > Use a 3rd party wrapper like mProjector.
> > > >
> > > > http://www.binarynoise.com/
> > > >
> > > > Way better than the buggy, unstable and CPU hogging Screenweaver.
> > > >
> > > > -Steven
> > >
> > >
> > > _______________________________________________
> > > Flashcoders mailing list
> > > Flashcoders@chattyfig.figleaf.com
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > _______________________________________________
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to