Centered Popup Problem

Hi there,

i have used the tutorial off the site for centered popup windows in the past, and they have always worked perfectly.

recently, i upgraded to Flash 8, and still had no problems with centered popups.

now, for some reason it just wont work. I have gone through the coding again and again, and can’t see anything amiss. but, i was wondering if someone could look through and see if there is anything i have missed?

please note: i am not able to share the correct URL with you, as it is not yet for public release (sorry, bound by contract…)

The movie contains a button called ‘btn_Up’. The AS for the same frame is:

btn_Up.onRelease = function() {
    getURL("javascript:Launch('http://www._____.com/___.html', 354,377)");
};

On the HTML page, above tag i have:

<script language="JavaScript"> 
    function Launch(page, width, height) { 
        OpenWin = this.open(page, "aotm", "toolbar=no, menubar=no ,location=no, scrollbars=no, resizable=no, width=" + width + ", height=" + height + ", top=" + (screen.height/2 - height/2) + ", left=" + (screen.width/2 - width/2) + "\""); 
    } 
</script> 

is there something i am missing here? the button is located on a layer above a small embedded .flv movie, would that make a difference?

When i click the flash movie in Firefox 1.5.0.1, nothing happens at all…

The code looks ok… i have noticed that popup blockers will from time-to-time disallow popup originating from flash. I don’t if they do by default or not. A general rule of thumb these days might be to avoid popups completely. :block:

update:

this seems to be working now, but only when its read from the web server. Locally it still doesn’t work, but oh well.

thanks for checking it flextnet!