I want to load a website from within my Flex application to a new browser
window.  When I use:

var request:URLRequest = new URLRequest(url);
navigateToURL(request,"_blank");

It works perfectly in both IE and Firefox.  Problem is I need the window to
pop up behind the flex app, so the flex user isn't disturbed by it.  So now
I'm using an ExternalInterface class to call some javascript I have in my
html wrapper.

In my flex:
-------------------

var f:String = "goNewWin";
ExternalInterface.call(f,url);

In my Javascript:
------------------------------
<SCRIPT LANGUAGE="JavaScript">
function goNewWin(url) {
var
TheNewWin=window.open(url,'TheNewpop','toolbar=1,location=1,directories=1,st
atus=1,menubar=1,scrollbars=1,resizable=1');
TheNewWin.blur();  //this function sends the new window to the background
}
</SCRIPT>


-----------------------
This works perfectly in IE for all links.   Unfortunately, in Firefox there
are problems.  Some webpages pop up and stay in the background, others pop
up in front.  All of them cause my Flex App to pseudo-crash, my backend can
still hear messages from it, but the client-side loses all ability to
receive messages back, as well as most intra-component event listening.  In
short, the externalInterface call crashes my App when its running in
Firefox.

Any ideas?  Thanks so much.

Jamie Clouser



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to