hi guys. does any one know the right way to make a popup that opens, centered to the screen?
i have a swf with a button that open a html popup with javascript
:
ActionScript Code:
cozinha.onPress = function ()
{
getURL("javascript:spawnWindow('cozinha.html','myWindow','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=500,height=315,left = 212,top = 184')");
}
is there a way to make an exact center, according the the screen's width and height?
please help
my thanx to who does