[flexcoders] Re: how to give focus to a new browser window
I will try that right now. Will be back weeping in a few minutes if it doesn't work, of course. Thanks! a --- In flexcoders@yahoogroups.com, Ian M. Jones [EMAIL PROTECTED] wrote: Have you tried the following? navigateToURL(new URLRequest(theURL), _blank); Ian IMiJ Software http://www.imijsoft.com http://www.ianmjones.net (blog) On 5 Sep 2008, at 09:42, Andrew Wetmore wrote: Hi: In my AIR project I need to pop a browser window and give it focus. The current code is: private function launchAFile():void{ var theURL:String = resourceContentsList.selectedItem.path; navigateToURL(new URLRequest(theURL)); } Is there a way to give that new window focus? At the moment, on some platforms, it pops up behind the application, and if the user has resized the app, it is easy to miss the new window. Thanks in advance! Alpha release on Monday!! a
[flexcoders] Re: how to give focus to a new browser window
As it turns out, I already have that in use in a couple of places, and it does not give focus to the new window in tabbed browser systems. Seems to be okay if you don't already have a browser window open, or if you do not use tabbed browser windows. Any other thoughts? a --- In flexcoders@yahoogroups.com, Ian M. Jones [EMAIL PROTECTED] wrote: Have you tried the following? navigateToURL(new URLRequest(theURL), _blank); Ian IMiJ Software http://www.imijsoft.com http://www.ianmjones.net (blog)
Re: [flexcoders] Re: how to give focus to a new browser window
Maybe minimize the application if it's still the front most application, possibly after showing an alert to say what you're up to? Or maybe just throw up a dialog to say you've opened up a browser window, again maybe only if you're still front most? Just some ideas. Ian On 5 Sep 2008, at 11:58, Andrew Wetmore wrote: As it turns out, I already have that in use in a couple of places, and it does not give focus to the new window in tabbed browser systems. Seems to be okay if you don't already have a browser window open, or if you do not use tabbed browser windows. Any other thoughts? a --- In flexcoders@yahoogroups.com, Ian M. Jones [EMAIL PROTECTED] wrote: Have you tried the following? navigateToURL(new URLRequest(theURL), _blank); Ian IMiJ Software http://www.imijsoft.com http://www.ianmjones.net (blog)