# Launch a Centered Pop-Up Window problem

**URL:** <https://forum.kirupa.com/t/launch-a-centered-pop-up-window-problem/171635>\
**Category:** flash\
**Created:** [December 7, 2005, 12:14am UTC](https://forum.kirupa.com/t/launch-a-centered-pop-up-window-problem/171635 "2005-12-07T00:14:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![superstring](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@superstring](https://forum.kirupa.com/u/superstring)\
**Post date:** [December 7, 2005, 12:14am UTC](https://forum.kirupa.com/t/launch-a-centered-pop-up-window-problem/171635/1 "2005-12-07T00:14:20Z")

</div>

I’m building a site in Flash in which I have a home page that I want to stay on the screen that has buttons that pop up centered, fixed-dimension windows to other sections of the site. I used the Kirupa Flash MX tutorial “Launch a Centered Pop-Up Window”, and it works, but I’m having one issue that I’ve had no luck resolving:  
The buttons do make a centered page pop up, and they look great, but when I click back on the home page and try to launch a different section, it won’t work. It will if I close the other section first, but if I don’t do that, it’s like there’s a block placed on that window or something. I think it’s confusing to a user who wouldn’t know to close that window before clicking back on the home page. I’m looking for a command that I can put in the centered pop-up code that either replaces the last pop-up with the new one that is clicked on the home page, or launches a new window so multiple windows would be open.

Here’s the action from the tutorial:

on (release) {  
//customize the window that gets opened  
// 0 equals NO.  
// 1 equals YES.  
address = “ANDY\_SRYGLEY\_print\_index.html”;  
target\_winName = “print”;  
width = 801;  
height = 601;  
toolbar = 1;  
location = 0;  
directories = 0;  
status = 1;  
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);  
}

Any help would be greatly appreciated.  
Thanks

Oh, by the way, the site that I’m working on is [www.andysrygley.com](http://www.andysrygley.com) if you want to see what I’m talking about. Just try opening a section from the compass, then clicking back on the home page and launching another section on the compass.
