# Centered popup

**URL:** <https://forum.kirupa.com/t/centered-popup/6405>\
**Category:** flash\
**Created:** [October 6, 2002, 7:11pm UTC](https://forum.kirupa.com/t/centered-popup/6405 "2002-10-06T19:11:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![toadclipper](https://avatars.discourse-cdn.com/v4/letter/t/b77776/32.png) [@toadclipper](https://forum.kirupa.com/u/toadclipper)\
**Post date:** [October 6, 2002, 7:11pm UTC](https://forum.kirupa.com/t/centered-popup/6405/1 "2002-10-06T19:11:36Z")

</div>

Hi all:)

I followed this tutorial, then downloaded the fla. for the centered popup. I get a syntax error when I run it. Can someone help me out on this? Here is the url for the tutorial and fla. [http://www.kirupa.com/developer/mx/centered\_popup.asp](http://www.kirupa.com/developer/mx/centered_popup.asp)

Thank you,  
Toad

---

<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 6, 2002, 7:21pm UTC](https://forum.kirupa.com/t/centered-popup/6405/2 "2002-10-06T19:21:37Z")

</div>

Works great for me!

Did you make sure you put the button actions on the button and the movie actions in a frame?

Stupid question I know, but when I first read it I expected the frame actions to be first, and I ended up pasting the button code on my frame and the frame code on my button. Pretty stupid of me eh?

Well after I reversed them it worked great.

You have to publish your movie and open it in IE (or your browser) to be able to test if it works.

Mine did, so there is nothing wrong with the code.

---

<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 6, 2002, 7:23pm UTC](https://forum.kirupa.com/t/centered-popup/6405/3 "2002-10-06T19:23:34Z")

</div>

Thank you

---

<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 6, 2002, 7:28pm UTC](https://forum.kirupa.com/t/centered-popup/6405/4 "2002-10-06T19:28:38Z")

</div>

Let me know how it goes 🙂

---

<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 6, 2002, 7:29pm UTC](https://forum.kirupa.com/t/centered-popup/6405/5 "2002-10-06T19:29:31Z")

</div>

Would ya mind taking a look at it?  
I attached the fla.  
Thank you,  
Toad

---

<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 6, 2002, 7:33pm UTC](https://forum.kirupa.com/t/centered-popup/6405/6 "2002-10-06T19:33:40Z")

</div>

It works fine for me. I just replaced the [http://www.kirupa.com/modular/pop-up.htm](http://www.kirupa.com/modular/pop-up.htm) with [http://www.lostinbeta.com](http://www.lostinbeta.com) and then published your file.

I opened the .html file and clicked the button and sure enough it worked great 🙂

It works with the first link too, but I figured I would self advertise 😛

Anywho, I tested in IE. What did you test it in?

[\<B\>EDIT/UPDATE: \</B\>I tested it in Netscape 6.2, and it worked in that also]

---

<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 6, 2002, 7:42pm UTC](https://forum.kirupa.com/t/centered-popup/6405/7 "2002-10-06T19:42:31Z")

</div>

What I am trying to do is open the centered popup from within my swf file. When I publish it, i get the html file and it works great, but when I try to use it from within my swf it does not. How might I acomplish this? Or, can this be done?  
Thanks:)  
Toad

---

<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 6, 2002, 9:07pm UTC](https://forum.kirupa.com/t/centered-popup/6405/8 "2002-10-06T21:07:02Z")

</div>

It can’t be done from the .swf file because window.open and such are javascript functions that call upon your browsers functions. Therefore, it needs to be done from your html page.
