And the Flex side:
var sLoadUrl:String = _sSiteAssetsUrl + help/ + sFileName;
ExternalInterface.call(showHelp, sLoadUrl);
Tracy Spratt
Lariat Services
Flex development bandwidth available
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf
Of Tracy Spratt
Sent: Monday, February 16, 2009 3:56 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] open new browser in maximized state
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: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf
Of GeeTee
Sent: Monday, February 16, 2009 2:44 PM
To: flexcoders@yahoogroups.com
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-tp22044344p22044344.html
Sent from the FlexCoders mailing list archive at Nabble.com.