I have a problem with the centered pop-up window tutorial that I can’t figure out.
I can get the pop-up windows to work correctly when using Safari on my MAC, but when attempt in IE on MAC or PC they don’t work.
I have a button that is embeded in a movieclip with this actionscript attached:
on (release) {
//customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = “http://www.tahvildari.com/headshots/index.htm”;
target_winName = “Tahvildari :: Headshots Portfolio”;
width = 450;
height = 600;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 1;
resizable = 0;
//sends data back to the function
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}
Then I used this actionscript on the line above the button, still within the same movieclip:
_global.openWinCentre = function (url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
getURL (“javascript:var myWin; if(!myWin || myWin.closed){myWin = window.open(’” + url + “’,’” + winName + “’,’” + “width=” + w + “,height=” + h + “,toolbar=” + toolbar + “,location=” + location + “,directories=” + directories + “,status=” + status + “,menubar=” + menubar + “,scrollbars=” + scrollbars + “,resizable=” + resizable + “,top=’+((screen.height/2)-(” + h/2 + “))+’,left=’+((screen.width/2)-(” + w/2 + “))+’” + “’)}else{myWin.focus();};void(0);”);
}
Any suggestions to why this isn’t working in IE?
Thanks for your help…