Hello,
I found a great tutorial on launching a centered pop up window that kirupa posted and firefox won’t execute it correctly or at all. I’m extremely frustrated because I need pop ups for my site to work and now it only functions in internet explorer or safari (mac). The url for the tutorial is http://www.flashkit.com/tutorials/Actionscripting/Launch-vazbo-1027/index.php
The way it works is that you have a frame action with the following function:
_global.openWinCentre = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) { getURL(“javascript: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+"))+’"+"’); void(0);"); };
and then on the button that calls the pop up you add this:
on (release) {
//customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = “http://www.unseenproductions.net/velvet.html”;
target_winName = “Velvet”;
width = 300;
height = 300;
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);
}
This works great so why not with Firefox. Please help…!
-Llyfre