Pop up window location

Hey . . .

i have a button that opens a pop up window centered on the screen.
What actionscript do i need to add if i want the pop up wndow to be say 100 pixels higher than te center of the screen?

also, is there anyway to make the pop up borderless and add another button to close it—i’m going for a streamlined look and don’t want all the "windows stuff—i already turned off the slider bar, but the other stuff is annoying!?

hondo . . .

here’s the actionscriptfor the button:

button actionscript---- this tells me what size etc.

on (release) {
// customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = “new_window.html”;
target_winName = “none”;
width = 250;
height = 250;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 0;
resizable = 0;
// sends data back to the function
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);

here’s the actionscript for the “actions” keyframe:

“action” keyframe actionscript — this centers the window etc.

_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);");
};