Hi ..
Before I start I am very new to actionscripting and I'm picking itup as I go along.
here's my problem :
I am trying to get a button in my flash movie to launch a new window "popup" with the window centered.
I can create a popup without problem but I can get the window to become center.
Heres what I have in my html page that the swf is embeded in :
<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
if (document.all)
var xMax = screen.width, yMax = screen.height;
else
if (document.layers)
var xMax = window.outerWidth, yMax = window.outerHeight;
else
var xMax = 640, yMax=480;
var xOffset = (xMax - 200)/2, yOffset = (yMax - 200)/2;
newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}
</script>
and heres my action script line on the button :
onClipEvent (load) {
_root.HomeButton.onMouseDown = function() {
getURL("javascript

penNewWindow('http://www.kart-net.co.uk','GoogleGoogle','height=700,width=500,to p='+yOffset+',left='+xOffset+',toolbar=No,scrollba rs=No,resizable=No,menubar=No,status=No,directorie s=No,location=No');");
};
}
PLEASE HELP.. Im pulling my hair out!!
Thanks
Encrypt.