// -------------------------
// Open a centered popup
// window with passed
// features (FLASH MX)
// -------------------------
MovieClip.prototype.centerPopup = function( theUrl,title, w, h, features)
{
var sysW = System.capabilities.screenResolutionX;
var sysH = System.capabilities.screenResolutionY;
var centerx = Math.round((sysW/2)-( w/2));
var centery = Math.round((sysH/2)-( h/2));
getURL("javascript:void(window.open('" + theUrl
+ "','" + title + "','width="+w+", height="+h+", left="
+centerx+", top="+centery+",screenX="+centerx+", screenY="
+centery+"," + features + "'));");
NewWindow.focus();void(0);
if(w.indexOf("%")!=-1){
w = sysW*parseInt(w);
}
if(h.indexOf("%")!=-1){
h = sysW*parseInt(h);
}
}
on bttn:
on (release)
{
centerPopup("http://www.html.it","html","menubar=no");
}
This works great in the Firefox browser.
In IE it will give me a popup, LEFT TOP 400*400
somehow…
Someone with a solution to make the same what FF does?
Thnx in advanced.
Greetz://