I am trying to get a flash button to open full screen with the titlebar still on top. I was able to get it to work when I am using an html button, but I cant get it to work using flash.
here is what I have.
AS:
on (press)
getURL(“javascript:openBrWindow(‘http://www.whiskeyparknorth.com/whiskeyparknorth/index.htm’,'winFeatures’)”);
}
Javascript:
function openBrWindow(theURL,winName,features) {
window.open(theURL,winName,features);
}
var winFeatures;
var w = 800, h = 600;
var popW = 800, popH = 600;
var leftPos = (w-popW)/2, topPos = (h-popH)/2;
if (document.all || document.layers) {
popW = screen.availWidth;
popH = screen.availHeight;
}
if (checkBrowser(“IE”)){
if (screen.width <= 800){
//show scrollbars
winFeatures = ‘width=’ + popW + ‘,height=’ + popH + ‘,top=’ + topPos + ‘,left=’ + leftPos + ‘,directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizable=no’;
} else {
//no scrollbars
winFeatures = ‘width=’ + popW + ‘,height=’ + popH + ‘,top=’ + topPos + ‘,left=’ + leftPos + ‘,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no’;
}
}
if (checkBrowser(“NS6”)){
if (screen.width <= 800){
//show scrollbars
winFeatures = ‘width=’ + popW + ‘,height=’ + popH + ‘,top=’ + topPos + ‘,left=’ + leftPos + ‘,directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizable=no’;
} else {
//no scrollbars
winFeatures = ‘width=’ + popW + ‘,height=’ + popH + ‘,top=’ + topPos + ‘,left=’ + leftPos + ‘,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no’;
}
}
Can anyone help.
Thanks