# \[Flash 8\] Centered Pop-Up Window

**URL:** <https://forum.kirupa.com/t/flash-8-centered-pop-up-window/225425>\
**Category:** flash\
**Created:** [May 11, 2007, 4:57pm UTC](https://forum.kirupa.com/t/flash-8-centered-pop-up-window/225425 "2007-05-11T16:57:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![taylortay](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/taylortay/32/3609_2.png) [@taylortay](https://forum.kirupa.com/u/taylortay)\
**Post date:** [May 11, 2007, 4:57pm UTC](https://forum.kirupa.com/t/flash-8-centered-pop-up-window/225425/1 "2007-05-11T16:57:22Z")

</div>

I had great success with the tutorial on this site about **Centered** Pop-Up Windows

Now my question is how do I get this to work when my button is in a swf that is being loaded into an html page. Basically the button swf is on the server but there is no html document for it on the server. Where do I put the javascript that goes above the body tag? Do I put it in the html document that the button swf is being externally loaded into??

Hope this question made sense. Any help would be greatly appreciated.

Thanx  
Taylor Tay
