# Popup prob

**URL:** <https://forum.kirupa.com/t/popup-prob/12041>\
**Category:** flash\
**Created:** [January 25, 2003, 9:50pm UTC](https://forum.kirupa.com/t/popup-prob/12041 "2003-01-25T21:50:23Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![LATO](https://avatars.discourse-cdn.com/v4/letter/l/f17d59/32.png) [@LATO](https://forum.kirupa.com/u/LATO)\
**Post date:** [January 25, 2003, 9:50pm UTC](https://forum.kirupa.com/t/popup-prob/12041/1 "2003-01-25T21:50:23Z")

</div>

Hi

I followed the popup tut, did everything. When I publish the file and test the buttons, the popup doesn’t appear but the Adress changes to:

javascript:var%20myWin;%20if(!myWin%20||%20myWin.closed){myWin%20=%20window.open(‘[http://home2.pi.be/lgeebele/Articles/articlesb2.htm’,‘Porsche%20Racing’,‘width=787,height=1121,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,top=’+((screen.height/2)-(560.5))+’,left=’+((screen.width/2)-(393.5))+’](http://home2.pi.be/lgeebele/Articles/articlesb2.htm','Porsche%20Racing','width=787,height=1121,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,top='+((screen.height/2)-(560.5))+',left='+((screen.width/2)-(393.5))+')’)}else{myWin.focus();};void(0);

and a Line 39 error. What could be wrong? I’m loading this swf in another, is that a prob?

Thnx

---

<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:** [January 25, 2003, 9:56pm UTC](https://forum.kirupa.com/t/popup-prob/12041/2 "2003-01-25T21:56:03Z")

</div>

line 39 error ?? we need all the info

> I’m loading this swf in another, is that a prob?

i don’t think so … but i could be wrong

---

<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:** [January 25, 2003, 10:04pm UTC](https://forum.kirupa.com/t/popup-prob/12041/3 "2003-01-25T22:04:20Z")

</div>

sure,

[http://home2.pi.be/lgeebele/Articles.swf](http://home2.pi.be/lgeebele/Articles.swf)

and the fla

---

<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:** [January 25, 2003, 10:13pm UTC](https://forum.kirupa.com/t/popup-prob/12041/4 "2003-01-25T22:13:03Z")

</div>

i assume that every magazine opens its own popup  
and you’re using the same code for all of them … rigth ??

well … i haven’t seen you fla yet but a lot a people have had problems opening multiple windows with the code at the tutorial

i’ll take a look … hopefully i can fix it

---

<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:** [January 25, 2003, 10:15pm UTC](https://forum.kirupa.com/t/popup-prob/12041/5 "2003-01-25T22:15:55Z")

</div>

correct, I adjusted the fla to one magazinepage only. (the real fla is complicated)

---

<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:** [January 25, 2003, 10:24pm UTC](https://forum.kirupa.com/t/popup-prob/12041/6 "2003-01-25T22:24:19Z")

</div>

I don’t think the popup works when you test the movie in flash, you have to actually test it when the swf is embeded in an actual html document. Test it while it is in a html doc on your comp and see if it works.

---

<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:** [January 25, 2003, 10:51pm UTC](https://forum.kirupa.com/t/popup-prob/12041/7 "2003-01-25T22:51:57Z")

</div>

electrongeek:

nop … that’s not the problem  
i’m testing that way and still doesn’t work

i tried rewriting the whole code with no result …  
lol … i have no idea what the hell is going on 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:** [January 25, 2003, 10:58pm UTC](https://forum.kirupa.com/t/popup-prob/12041/8 "2003-01-25T22:58:41Z")

</div>

hey LATO

why don’t you try lost’s code?  
[http://www.kirupaforum.com/showthread.php?s=&threadid=8114&highlight=popup](http://www.kirupaforum.com/showthread.php?s=&threadid=8114&highlight=popup)

see attachment at second post

---

<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:** [January 25, 2003, 11:25pm UTC](https://forum.kirupa.com/t/popup-prob/12041/9 "2003-01-25T23:25:05Z")

</div>

thanx, I tried it but same result:

javascript:newWin(‘[http://home2.pi.be/lgeebele/Articles/articlesd1.htm’,‘Porsche%20Racing’,‘787’,‘1121’,‘no’,'no](http://home2.pi.be/lgeebele/Articles/articlesd1.htm','Porsche%20Racing','787','1121','no','no)’)

as Adress

(Did this with first picture of 3rd magazine)

---

<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:** [January 25, 2003, 11:27pm UTC](https://forum.kirupa.com/t/popup-prob/12041/10 "2003-01-25T23:27:02Z")

</div>

You are calling it wrong somehow.

Please post your whole getURL 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:** [January 25, 2003, 11:28pm UTC](https://forum.kirupa.com/t/popup-prob/12041/11 "2003-01-25T23:28:02Z")

</div>

Oh wait, I see the problem.

Your window name can only be one word, you have it as two…

Porsche Racing

Try changing it to porscheRacing instead.

---

<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:** [January 25, 2003, 11:34pm UTC](https://forum.kirupa.com/t/popup-prob/12041/12 "2003-01-25T23:34:35Z")

</div>

i knew that !! :sure:

no i didn’t ☹

---

<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:** [January 25, 2003, 11:37pm UTC](https://forum.kirupa.com/t/popup-prob/12041/13 "2003-01-25T23:37:54Z")

</div>

thanx y’all, prob solved (now i’m gonna find out how i could be so stupid, maby there’s a tut ;))

cya

---

<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:** [January 25, 2003, 11:52pm UTC](https://forum.kirupa.com/t/popup-prob/12041/14 "2003-01-25T23:52:44Z")

</div>

Your not stupid. I remember when I first started with window opening in Javascript. I was so frazzled as to why i was getting an error in my script. I just couldn’t figure it out.

I changed my window name and voila, it worked. I had to learn the hard way too 🙂
