# How to create a pop-up for multiple .swf?

**URL:** https://forum.kirupa.com/t/how-to-create-a-pop-up-for-multiple-swf/111548
**Category:** Uncategorized
**Created:** [May 28, 2004, 2:11am UTC](https://forum.kirupa.com/t/how-to-create-a-pop-up-for-multiple-swf/111548 "2004-05-28T02:11:30Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![solox](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@solox](https://forum.kirupa.com/u/solox)
#### Post date: [May 28, 2004, 2:11am UTC](https://forum.kirupa.com/t/how-to-create-a-pop-up-for-multiple-swf/111548/1 "2004-05-28T02:11:30Z")

</div>

Ok, this is mt second post! Again, i’m sorry for my bad english…

Ok, i have to use pop-up for my portfolio website.Before i always use this method [http://www.flashkit.com/tutorials/Actionscripting/Opening\_-Mohamed\_-836/index.php](http://www.flashkit.com/tutorials/Actionscripting/Opening_-Mohamed_-836/index.php) but this tutorial is only for 1 swf…i have to pop-up about 5-6 different .swf

I dont want a tutorial for a pop-up with a url but for a multiple external .swf

any idea? I check the tutorial from Kirupa([http://www.kirupa.com/developer/mx/centered\_popup.htm](http://www.kirupa.com/developer/mx/centered_popup.htm)) but i think this is only for a URL pop-up(??)

Thanks for your help

Rick

---

<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: [May 28, 2004, 2:41am UTC](https://forum.kirupa.com/t/how-to-create-a-pop-up-for-multiple-swf/111548/2 "2004-05-28T02:41:25Z")

</div>

I’m confused, what are you asking for? You want to pop up 5 windows? Or one window with 5 swfs? Or 5 links to 5 different popups? Or 1 link to 1 popup that loads external swfs?

---

<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: [May 28, 2004, 3:07am UTC](https://forum.kirupa.com/t/how-to-create-a-pop-up-for-multiple-swf/111548/3 "2004-05-28T03:07:50Z")

</div>

> [@Yeldarb](#):
>
> I’m confused, what are you asking for? You want to pop up 5 windows? Or one window with 5 swfs? Or 5 links to 5 different popups? Or 1 link to 1 popup that loads external swfs?

Ok…sorry!

i have 5 or 6 different external .swf to show in my section ‘‘portfolio’’…These .swf are not online(not on a website), so when we clic a button, i need a pop-up for one of the external .swf.

Exemple:

button 1 call----- pirate.swf (popup)  
Button 2 call----- boat.swf(pop-up)  
Button 3 call-----sun.swf(pop-up)  
etc…

Understand? so it’s 5 links to 5 different external swf popups…

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: [May 28, 2004, 5:58pm UTC](https://forum.kirupa.com/t/how-to-create-a-pop-up-for-multiple-swf/111548/4 "2004-05-28T17:58:26Z")

</div>

any idea someone?☹

---

<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: [May 28, 2004, 6:07pm UTC](https://forum.kirupa.com/t/how-to-create-a-pop-up-for-multiple-swf/111548/5 "2004-05-28T18:07:53Z")

</div>

```auto

function Launch(page) { 
OpenWin = this.open(page, "Window Title", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=850,height=450"); 
} 

```

Put this on the HTML page it is JScript and then pass a string which is the path to the external swf file to the function

if in flash

```auto

getURL("javascript:Launch('path')");

```

in HTML link

```auto

<a href="javascript:Launch('path')">LINK</a>

```

---

<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: [May 29, 2004, 12:01am UTC](https://forum.kirupa.com/t/how-to-create-a-pop-up-for-multiple-swf/111548/6 "2004-05-29T00:01:30Z")

</div>

> [@simpleSoft](#):
>
> ```auto
> 
> function Launch(page) { 
> OpenWin = this.open(page, "Window Title", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=850,height=450"); 
> } 
> 
> ```
> 
> Put this on the HTML page it is JScript and then pass a string which is the path to the external swf file to the function
> 
> if in flash
> 
> ```auto
> 
> getURL("javascript:Launch('path')");
> 
> ```
> 
> in HTML link
> 
> ```auto
> 
> <a href="javascript:Launch('path')">LINK</a>
> 
> ```

Ok…i try to understand but i can figure out what you explain me.

‘‘and then pass a string which is the path to the external swf file to the function’’ ??? i dont understand this line…

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: [May 29, 2004, 12:44am UTC](https://forum.kirupa.com/t/how-to-create-a-pop-up-for-multiple-swf/111548/7 "2004-05-29T00:44:27Z")

</div>

href="javascript:Launch(‘[http://www.someurl.com/sample.swf](http://www.someurl.com/sample.swf)’)"  
getURL(“javascript:Launch(‘[http://www.someurl.com/sample.swf](http://www.someurl.com/sample.swf)’)”);
