# Centered Pop-Up Window Tutorial help

**URL:** <https://forum.kirupa.com/t/centered-pop-up-window-tutorial-help/50654>\
**Category:** flash\
**Created:** [May 5, 2004, 5:58am UTC](https://forum.kirupa.com/t/centered-pop-up-window-tutorial-help/50654 "2004-05-05T05:58:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![victimsofadown](https://avatars.discourse-cdn.com/v4/letter/v/d6d6ee/32.png) [@victimsofadown](https://forum.kirupa.com/u/victimsofadown)\
**Post date:** [May 5, 2004, 5:58am UTC](https://forum.kirupa.com/t/centered-pop-up-window-tutorial-help/50654/1 "2004-05-05T05:58:42Z")

</div>

I followed all of the instructions, but it won’t seem to open the file correctly. The file is a .swf so that might be why, but I’m hoping not.

this is my coding in the “action” of the button which should start the popup

_on (release) {  
//customize the window that gets opened  
// 0 equals NO.  
// 1 equals YES.  
address = “index3.swf”;  
target\_winName = “1337 TOONS”;  
width = 650;  
height = 525;  
toolbar = 0;  
location = 0;  
directories = 0;  
status = 0;  
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);  
}_

it IS in the correct directory and everything. For some reason the regular site won’t work on an HTML page… If this doesn’t work then I will post that problem on this site. I’ve posted it on the Macromedia forums at least 3 times with no answer. ☹

so for now just please try to help with this popup problem

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 8, 2004, 1:21am UTC](https://forum.kirupa.com/t/centered-pop-up-window-tutorial-help/50654/2 "2004-09-08T01:21:02Z")

</div>

A solution that you might find cleaner is adding this: \<body marginwidth=0 marginheight=0 topmargin=0 leftmargin=0\>
