# Pop-up window question

**URL:** <https://forum.kirupa.com/t/pop-up-window-question/10628>\
**Category:** Uncategorized\
**Created:** [January 4, 2003, 4:29pm UTC](https://forum.kirupa.com/t/pop-up-window-question/10628 "2003-01-04T16:29:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ambrosia](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@Ambrosia](https://forum.kirupa.com/u/Ambrosia)\
**Post date:** [January 4, 2003, 4:29pm UTC](https://forum.kirupa.com/t/pop-up-window-question/10628/1 "2003-01-04T16:29:39Z")

</div>

I have a little question about the centered pop-up window tutorial: How do I replace the web address with a swf. file, so that every time the user clicks the link, a swf.page opens.

I`m not so good with actionscripting… :hat:

---

<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 4, 2003, 4:38pm UTC](https://forum.kirupa.com/t/pop-up-window-question/10628/2 "2003-01-04T16:38:28Z")

</div>

Why don’t you just embed the swf file into the html doc you’re going to open?

---

<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 4, 2003, 6:02pm UTC](https://forum.kirupa.com/t/pop-up-window-question/10628/3 "2003-01-04T18:02:13Z")

</div>

How do I do that? I`m sorry i`m new with flash and my english is not so good…

---

<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 4, 2003, 6:12pm UTC](https://forum.kirupa.com/t/pop-up-window-question/10628/4 "2003-01-04T18:12:14Z")

</div>

go to File | Publish Settings

at the Formats tab … select HTML (.html) and Flash (.swf)  
click on Publish and you’re done

---

<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 4, 2003, 6:14pm UTC](https://forum.kirupa.com/t/pop-up-window-question/10628/5 "2003-01-04T18:14:20Z")

</div>

Place the code below into the HTML page you’re going to open in the pop-up. Make sure you add in the name and the size of your swf file as well.

```php
<EMBED src="your.swf" quality="high" WIDTH="300" HEIGHT="300" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>

```
