# Pop-Up Window ...!?

**URL:** <https://forum.kirupa.com/t/pop-up-window/17060>\
**Category:** Uncategorized\
**Created:** [April 1, 2003, 12:22am UTC](https://forum.kirupa.com/t/pop-up-window/17060 "2003-04-01T00:22:37Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![filete](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/filete/32/124_2.png) [@filete](https://forum.kirupa.com/u/filete)\
**Post date:** [April 1, 2003, 12:22am UTC](https://forum.kirupa.com/t/pop-up-window/17060/1 "2003-04-01T00:22:37Z")

</div>

Hi there

The problem is that i can´t find a way to put the size of a new window  
on the synthax.  
This way it always open at full size…

this is the syntax im using:

on(release){  
getURL (“[http://wwww.filete.0catch.com/hitsingle.mp3","\_blank](http://wwww.filete.0catch.com/hitsingle.mp3%22,%22_blank)”);  
}

Can you help me with this?

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:** [April 1, 2003, 12:35am UTC](https://forum.kirupa.com/t/pop-up-window/17060/2 "2003-04-01T00:35:52Z")

</div>

If I’m correct… You have to ue javascript in the getURL line to do this… I forget the actual schematics off the top of my head…

If anyone sees this and remembers the JavaScript to open a window at a set size… Please mark it down… I’ll look it up in the meantime.

playamarz :player:

---

<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:** [April 1, 2003, 1:25am UTC](https://forum.kirupa.com/t/pop-up-window/17060/3 "2003-04-01T01:25:00Z")

</div>

Place this javascript into the \< head \> section of the HTML page that your swf movie is embeded in:

```php
<script language="JavaScript">
 function openWin(url, w, h)
 {
 var winprop = "width=" + w + ",height=" + h;
 openwin = window.open(url,'',winprop);
 }
 </script> 

```

Then use this getURL actionscript:[AS]on (release) {  
getURL(“JavaScript:openWin(‘abstract1.html’, ‘500’, ‘300’)”);  
}[/AS]  
You can specify the width and height of the popup window as well. =)

---

<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:** [April 1, 2003, 1:26am UTC](https://forum.kirupa.com/t/pop-up-window/17060/4 "2003-04-01T01:26:54Z")

</div>

There it is… I just found it as well EG… Bastard got to it before me… Oh well…

Jolly good job mate :beam:

playamarz :player:

---

<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:** [April 1, 2003, 1:33am UTC](https://forum.kirupa.com/t/pop-up-window/17060/5 "2003-04-01T01:33:00Z")

</div>

By the way, filete, please don’t post multiple posts, it confuses people who are trying to help…

---

<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:** [April 1, 2003, 2:22am UTC](https://forum.kirupa.com/t/pop-up-window/17060/6 "2003-04-01T02:22:35Z")

</div>

Thanks for the help…

But if i dont use HTML page, just the SWF movie itself ?  
How do i do it?

thanks again

[www.filete.net](http://www.filete.net)

---

<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:** [April 1, 2003, 2:39am UTC](https://forum.kirupa.com/t/pop-up-window/17060/7 "2003-04-01T02:39:52Z")

</div>

I guess I don’t understand your question … you allready have the syntax for calling out the popUp without mod’ing your HTML…

[\>\>\>here is MacroMedias tutorial on the whole deal\<\<\<](http://www.macromedia.com/support/flash/ts/documents/popup_windows.htm)

Chars

---

<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:** [April 1, 2003, 2:45am UTC](https://forum.kirupa.com/t/pop-up-window/17060/8 "2003-04-01T02:45:19Z")

</div>

> \*Originally posted by filete \*  
> **But if i dont use HTML page, just the SWF movie itself ?  
> How do i do it?**

You can do it with this tutorial, it will let you specify the size of the popup window as well.

> **[kirupa.com - Launching a Centered Pop-Up Window](https://www.kirupa.com/developer/mx/centered_popup.htm)**
>
> Create a pop-up window that is centered and can be extensively customized.

---

<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:** [April 1, 2003, 3:30am UTC](https://forum.kirupa.com/t/pop-up-window/17060/9 "2003-04-01T03:30:27Z")

</div>

Hey guys!

Just got a flash extension at Macromedia that will solve all  
that \*\*\*\*ing problems when you want to make pop-up windows!

I will just leave here the url from the guys who design it.  
Go there, install  
and enjoy…

🙂

[http://home.swfla.rr.com/centerpopup/](http://home.swfla.rr.com/centerpopup/)

See you,  
[www.filete.net](http://www.filete.net)
