# Centered Popup Problem

**URL:** <https://forum.kirupa.com/t/centered-popup-problem/185111>\
**Category:** flash\
**Created:** [April 11, 2006, 2:07am UTC](https://forum.kirupa.com/t/centered-popup-problem/185111 "2006-04-11T02:07:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bluemuppet](https://avatars.discourse-cdn.com/v4/letter/b/a4c791/32.png) [@bluemuppet](https://forum.kirupa.com/u/bluemuppet)\
**Post date:** [April 11, 2006, 2:07am UTC](https://forum.kirupa.com/t/centered-popup-problem/185111/1 "2006-04-11T02:07:19Z")

</div>

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:

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

```

On the HTML page, above tag i have:

```auto
<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…

---

<div class="post-metadata">

**Author:** ![flextnet](https://avatars.discourse-cdn.com/v4/letter/f/7ba0ec/32.png) [@flextnet](https://forum.kirupa.com/u/flextnet)\
**Post date:** [April 11, 2006, 3:35pm UTC](https://forum.kirupa.com/t/centered-popup-problem/185111/2 "2006-04-11T15:35:22Z")

</div>

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:

---

<div class="post-metadata">

**Author:** ![bluemuppet](https://avatars.discourse-cdn.com/v4/letter/b/a4c791/32.png) [@bluemuppet](https://forum.kirupa.com/u/bluemuppet)\
**Post date:** [April 13, 2006, 5:12am UTC](https://forum.kirupa.com/t/centered-popup-problem/185111/3 "2006-04-13T05:12:08Z")

</div>

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!
