# Multi pop up windows in the same movie

**URL:** https://forum.kirupa.com/t/multi-pop-up-windows-in-the-same-movie/35442
**Category:** Uncategorized
**Created:** [November 14, 2003, 2:24am UTC](https://forum.kirupa.com/t/multi-pop-up-windows-in-the-same-movie/35442 "2003-11-14T02:24:47Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![binsenian](https://avatars.discourse-cdn.com/v4/letter/b/b5ac83/32.png) [@binsenian](https://forum.kirupa.com/u/binsenian)
#### Post date: [November 14, 2003, 2:24am UTC](https://forum.kirupa.com/t/multi-pop-up-windows-in-the-same-movie/35442/1 "2003-11-14T02:24:47Z")

</div>

i used the action script in the tutural that open a browser pop up windows in the the centar of the flash movie and i mange to do it but the problem is that i want mulity diffrant windows that open with diffrant button when i do that it keept open the same first window for all the button and ignor the other …even when i put the java script of the popup window in diffrant movieclip… and change the URL of the rest of the pages my qusetio is

how i can open say 4 popup window with diffrant URL and diffrant button

---

<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: [November 14, 2003, 2:34am UTC](https://forum.kirupa.com/t/multi-pop-up-windows-in-the-same-movie/35442/2 "2003-11-14T02:34:08Z")

</div>

This question has already been asked before. Try using the search feature.  
[search][/search]

---

<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: [November 14, 2003, 2:44am UTC](https://forum.kirupa.com/t/multi-pop-up-windows-in-the-same-movie/35442/3 "2003-11-14T02:44:51Z")

</div>

i really did search befor i post that but i got the same one popup window and i really did my best before i post that any help on that

---

<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: [November 14, 2003, 3:01am UTC](https://forum.kirupa.com/t/multi-pop-up-windows-in-the-same-movie/35442/4 "2003-11-14T03:01:36Z")

</div>

Try this code instead

```auto
Movieclip.prototype.openWinCentre = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
	getURL("java **** script:var myWin; myWin = window.open('"+url+"','"+winName+"','"+"width="+w+",height="+h+",toolbar="+toolbar+",location="+location+",directories="+directories+",status="+status+",menubar="+menubar+",scrollbars="+scrollbars+",resizable="+resizable+",top='+((screen.height/2)-("+h/2+"))+',left='+((screen.width/2)-("+w/2+"))+'"+"');void(0);");
};

```

---

<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: [November 14, 2003, 7:14pm UTC](https://forum.kirupa.com/t/multi-pop-up-windows-in-the-same-movie/35442/5 "2003-11-14T19:14:57Z")

</div>

all i can say is thank you very much man 🙂 it really did work and the page conttent changed acoording to the link but sadlly when i opend the second URL the second page opend behind the flash movies window …so the user will not be a ware that the th window has opend:hr:

---

<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: [November 14, 2003, 7:20pm UTC](https://forum.kirupa.com/t/multi-pop-up-windows-in-the-same-movie/35442/6 "2003-11-14T19:20:15Z")

</div>

Sorry, use this instead:

```auto
Movieclip.prototype.openWinCentre = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
        getURL("java **** script:var myWin; myWin = window.open('"+url+"','"+winName+"','"+"width="+w+",height="+h+",toolbar="+toolbar+",location="+location+",directories="+directories+",status="+status+",menubar="+menubar+",scrollbars="+scrollbars+",resizable="+resizable+",top='+((screen.height/2)-("+h/2+"))+',left='+((screen.width/2)-("+w/2+"))+'"+"');void(0);myWin.focus();");
};

```
