surfer_43
07-23-2007, 06:30 PM
I am developing a projector presentation and need to open windows of a browser to contain java created content.
I have been to:
http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/
This loads the page required from the CD but has the URL bar, back and forward arrows, goolge search bar and all the other features of a regular browser window.
MacMyButton.onRelease=function()
{
getURL("javascript:openNewWindow('URLLocation.html','thewi n','height=696,width=610,toolbar=no,scrollbars=yes ') ");
}
This combination of actionscript and javascript opens the window of a known absolute path and controls all the bowser window features that i would like to control.
What I am trying to do is use the javascript from the second section of code here in the code shown here:
// code on a keyframe on the main timeline
var swfUrl:String = _root._url;
var lastSlashIndex:Number = swfUrl.lastIndexOf("/");
var pipeIndex:Number = swfUrl.indexOf("|");
var baseUrl:String;
if (pipeIndex >= 0)
{
baseUrl = swfUrl.substring(0, pipeIndex);
baseUrl += ":";
}
else
{
baseUrl = "";
}
baseUrl += swfUrl.substring(pipeIndex + 1, lastSlashIndex + 1);
myButton.onRelease = function()
{
var targetUrl:String = baseUrl + "test.html";
getURL(targetUrl, "_blank");
};
targetUrl is a variable that I need to pass into the javascript:openNewWindow('http://www.URLLocation.html','thewin','height=696,width=6 10,toolbar=no,scrollbars=yes') to replace the "http://www.URLLocation.html" and yet maintain control of the browser window features.
Any advice would be greatly appreciated.
Cheers
Joel
I have been to:
http://probertson.com/articles/2006/10/11/geturl-flash-projector-firefox-problem/
This loads the page required from the CD but has the URL bar, back and forward arrows, goolge search bar and all the other features of a regular browser window.
MacMyButton.onRelease=function()
{
getURL("javascript:openNewWindow('URLLocation.html','thewi n','height=696,width=610,toolbar=no,scrollbars=yes ') ");
}
This combination of actionscript and javascript opens the window of a known absolute path and controls all the bowser window features that i would like to control.
What I am trying to do is use the javascript from the second section of code here in the code shown here:
// code on a keyframe on the main timeline
var swfUrl:String = _root._url;
var lastSlashIndex:Number = swfUrl.lastIndexOf("/");
var pipeIndex:Number = swfUrl.indexOf("|");
var baseUrl:String;
if (pipeIndex >= 0)
{
baseUrl = swfUrl.substring(0, pipeIndex);
baseUrl += ":";
}
else
{
baseUrl = "";
}
baseUrl += swfUrl.substring(pipeIndex + 1, lastSlashIndex + 1);
myButton.onRelease = function()
{
var targetUrl:String = baseUrl + "test.html";
getURL(targetUrl, "_blank");
};
targetUrl is a variable that I need to pass into the javascript:openNewWindow('http://www.URLLocation.html','thewin','height=696,width=6 10,toolbar=no,scrollbars=yes') to replace the "http://www.URLLocation.html" and yet maintain control of the browser window features.
Any advice would be greatly appreciated.
Cheers
Joel