0 Replies Latest reply on Apr 7, 2011 10:54 AM by denisahearn

    How to keep notification window from stealing focus from main AIR window

    denisahearn

      Hi,

       

      We have an AIR (JavaScript based) chat application that uses the technique posted at the following link to display a notiifcation window each time the user receives a new message.  The notification window gradually fades away after 5 seconds.

       

      http://cookbooks.adobe.com/post_Creating_a_transparent_notification_window-8226.html

       

      The technique uses HTMLLoader.createRootWindow to create and display the notification window.

       

      The issue we are having is that the notification window steals/removes focus from the main AIR window, which is annoying if you are in the middle of typing a message that you want to send to other users.  Once the notification fades away, focus is returned to the main AIR window.

       

      I searched the AIR documentation to see if there is a way to keep the notification window from stealing focus, but came up empty.  I'm hoping I'm overlooking something.  Can anyone help out?

       

      Thanks,

      Denis