# PopUp Window

**URL:** <https://forum.kirupa.com/t/popup-window/6957>\
**Category:** flash\
**Created:** [October 20, 2002, 10:32pm UTC](https://forum.kirupa.com/t/popup-window/6957 "2002-10-20T22:32:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chupa](https://avatars.discourse-cdn.com/v4/letter/c/bbce88/32.png) [@Chupa](https://forum.kirupa.com/u/Chupa)\
**Post date:** [October 20, 2002, 10:32pm UTC](https://forum.kirupa.com/t/popup-window/6957/1 "2002-10-20T22:32:17Z")

</div>

K, i need help with something…

I’ve set up my main SWF to launch a popup window when loaded, but don’t know the java code to put in the actions box. can anyone tell me what it is? you can take a look at the site to get an idea of what i mean:

[http://www.thefullnine.ca/open.htm](http://www.thefullnine.ca/open.htm)

thanks!

---

<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:** [October 21, 2002, 1:39am UTC](https://forum.kirupa.com/t/popup-window/6957/2 "2002-10-21T01:39:02Z")

</div>

I have attached a .txt file that teaches you how to make a very basic pop-up window.

---

<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:** [October 21, 2002, 1:40am UTC](https://forum.kirupa.com/t/popup-window/6957/3 "2002-10-21T01:40:18Z")

</div>

This .txt attachment is another method of launching pop up windows. This one even automatically centerst he window to the viewers screen now matter what resolution they have.

---

<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:** [October 21, 2002, 1:45am UTC](https://forum.kirupa.com/t/popup-window/6957/4 "2002-10-21T01:45:40Z")

</div>

Ok, will this work without having a button to click? i have it so the window launches automaticly.

thanks

---

<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:** [October 21, 2002, 1:50am UTC](https://forum.kirupa.com/t/popup-window/6957/5 "2002-10-21T01:50:20Z")

</div>

The code I gave you is all in HTML so what you will need to do is add it in AS on a FRAME like this…

getURL(“javascript:openWin(blah)”;);
