Write a javascript function in the html wrapper that actually opens the
browser, and use ExternalInterface to call that function.

 

  function showHelp(sURL)

  {

    if (windowHelp && windowHelp.open && !windowHelp.closed)  {    //Be
SURE the window is available

      if (sURL != sLastURL && sURL.length > 0)  {                  //If
user wants a new url

        windowHelp.location.href = sURL;
//navigate

        sLastURL = sURL;

      }

      windowHelp.focus();
//always focus

    }

    else  {

      if (sURL.length > 0)  {
//make sure we have an url

        var iBorderWidth = 50;

        var iLeft = window.screenLeft;

        var iTop = window.screenTop;

        var iWidth = document.body.offsetWidth;

        var iHeight = document.body.offsetHeight;   

        

        var sWindowProperties =
"location=no,toolbar=no,scrollbars=yes,menubar=no,resizable=yes"

        sWindowProperties += ",top=" + (iTop + iBorderWidth);

        sWindowProperties += ",left=" + (iLeft + iBorderWidth);

        sWindowProperties += ",height=500";

        sWindowProperties += ",width=400";

        windowHelp = window.open(sURL,'Help',sWindowProperties);

        sLastURL = sURL;

      }

    }

  }//showHelp

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 

________________________________

From: [email protected] [mailto:[email protected]] On
Behalf Of GeeTee
Sent: Monday, February 16, 2009 2:44 PM
To: [email protected]
Subject: [flexcoders] open new browser in maximized state

 


Hi everyone,

Can anyone let me know if it is possible using Flex / AS to open a new
browser (using navigateToURL(arg1,"_blank")) with the new browser in
maximized state? On my system, it always opens at a smaller size and
does
not create a good user experience.

Thanks.
Gaurav
-- 
View this message in context:
http://www.nabble.com/open-new-browser-in-maximized-state-tp22044344p220
44344.html
<http://www.nabble.com/open-new-browser-in-maximized-state-tp22044344p22
044344.html> 
Sent from the FlexCoders mailing list archive at Nabble.com.



Reply via email to