Re: [flexcoders] how to give focus to a new browser window

2008-09-05 Thread Ian M. Jones

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] how to give focus to a new browser window

2008-09-05 Thread Andrew Wetmore
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