# Centered Pop-Up Tutorial from this Site

**URL:** <https://forum.kirupa.com/t/centered-pop-up-tutorial-from-this-site/14957>\
**Category:** flash\
**Created:** [March 4, 2003, 8:29pm UTC](https://forum.kirupa.com/t/centered-pop-up-tutorial-from-this-site/14957 "2003-03-04T20:29:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RKrajenke](https://avatars.discourse-cdn.com/v4/letter/r/d6d6ee/32.png) [@RKrajenke](https://forum.kirupa.com/u/RKrajenke)\
**Post date:** [March 4, 2003, 8:29pm UTC](https://forum.kirupa.com/t/centered-pop-up-tutorial-from-this-site/14957/1 "2003-03-04T20:29:30Z")

</div>

Hello,

I have been searching for a pop-up solution for flash sites.  
It appears the tutorial on this site is perfect. The tutorial works fine on the site, but when I add it to my server I get a white page  
with this URL:

javascript:var%20myWin;%20if(!myWin%20||%20myWin.closed){myWin%20=%20window.open(‘[http://www.kirupa.com/modular/pop-up.htm’,‘kirupa’,‘width=400,height=300,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,top=’+((screen.height/2)-(150))+’,left=’+((screen.width/2)-(200))+’](http://www.kirupa.com/modular/pop-up.htm','kirupa','width=400,height=300,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,top='+((screen.height/2)-(150))+',left='+((screen.width/2)-(200))+')’)}else{myWin.focus();};void(0);

I downloaded the source files from the site, published it, then put the html file and the .swf file on the server. Seems like a no brainer!

Any gracious guru have any ideas they wouldn’t mind sharing??

---

<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:** [March 4, 2003, 9:23pm UTC](https://forum.kirupa.com/t/centered-pop-up-tutorial-from-this-site/14957/2 "2003-03-04T21:23:06Z")

</div>

Hi!

I have had problems with these silly popup things for some time. I actually recently figured it out. I don’t know if this was the tut you used:

[http://www.kirupa.com/developer/mx/centered\_popup.htm](http://www.kirupa.com/developer/mx/centered_popup.htm)

if so, make sure you have your actions on the button and the frame as well. If you don’t want a button, I think I used it once on a movieClip with onClipEvent(load).

Hope that helps!
