# Popup headache

**URL:** <https://forum.kirupa.com/t/popup-headache/25216>\
**Category:** Uncategorized\
**Created:** [July 10, 2003, 4:35pm UTC](https://forum.kirupa.com/t/popup-headache/25216 "2003-07-10T16:35:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prufrock451](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@Prufrock451](https://forum.kirupa.com/u/Prufrock451)\
**Post date:** [July 10, 2003, 4:35pm UTC](https://forum.kirupa.com/t/popup-headache/25216/1 "2003-07-10T16:35:56Z")

</div>

I’ve been tearing out my hair trying to make a popup JavaScript work.

I have a .html page with an embedded .swf, “design\_base.swf”.

Clicking on a button loads a second file, “portfolio\_atmo1.swf”, which I want to link to the URL for this project in a popup.

I’ve created a button there that will launch a popup window, I’ve put in the correct ActionScript ([http://www.kirupaforum.com/forums/showthread.php?s=&postid=242637#post242637](http://www.kirupaforum.com/forums/showthread.php?s=&postid=242637#post242637)), and I’ve placed the JavaScript in the .html, and… squat. Not even the dignity of an error message.

Is this because the popup script won’t work from the second .swf?

---

<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:** [July 10, 2003, 4:46pm UTC](https://forum.kirupa.com/t/popup-headache/25216/2 "2003-07-10T16:46:46Z")

</div>

as long as your swf has the getURL javascript code, it should work

---

<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:** [July 11, 2003, 4:14pm UTC](https://forum.kirupa.com/t/popup-headache/25216/3 "2003-07-11T16:14:54Z")

</div>

The code works in the embedded “design\_base.swf”.

However, when the user clicks on the Portfolio link, “portfolio.swf” is loaded into a movie clip. I can’t make the popup code work from here.

---

<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:** [July 11, 2003, 6:20pm UTC](https://forum.kirupa.com/t/popup-headache/25216/4 "2003-07-11T18:20:57Z")

</div>

aHA. I also had to take a mistyped space out of the window name. False alarm! And thanks for the help, Dig.

---

<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:** [July 11, 2003, 6:47pm UTC](https://forum.kirupa.com/t/popup-headache/25216/5 "2003-07-11T18:47:38Z")

</div>

no prob, figured it was something like that.
