# Pop-up window

**URL:** https://forum.kirupa.com/t/pop-up-window/26771
**Category:** flash
**Created:** [July 26, 2003, 4:46am UTC](https://forum.kirupa.com/t/pop-up-window/26771 "2003-07-26T04:46:01Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![rawguru](https://avatars.discourse-cdn.com/v4/letter/r/ce7236/32.png) [@rawguru](https://forum.kirupa.com/u/rawguru)
#### Post date: [July 26, 2003, 4:46am UTC](https://forum.kirupa.com/t/pop-up-window/26771/1 "2003-07-26T04:46:01Z")

</div>

Ok, I got everything to work but i can get my .swf file to fit the pop up window. it is the exact size as the window.  
please 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: [July 26, 2003, 5:01am UTC](https://forum.kirupa.com/t/pop-up-window/26771/2 "2003-07-26T05:01:39Z")

</div>

did you get rid of the margins and all that good stuff?

---

<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: [July 26, 2003, 5:06am UTC](https://forum.kirupa.com/t/pop-up-window/26771/3 "2003-07-26T05:06:34Z")

</div>

on what? the pop up window? I got rid of all the good stuff

---

<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: [July 26, 2003, 5:07am UTC](https://forum.kirupa.com/t/pop-up-window/26771/4 "2003-07-26T05:07:37Z")

</div>

Could you post a link to show us?

---

<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: [July 26, 2003, 5:36am UTC](https://forum.kirupa.com/t/pop-up-window/26771/5 "2003-07-26T05:36:52Z")

</div>

here is the link to one of the sections. Click on pictures.  
[http://www.rawguru.com/gurumov.html](http://www.rawguru.com/gurumov.html)

here is the script i used for everthing

for my button  
[AS]on (release) {  
// customize the window that gets opened  
// 0 equals NO.  
// 1 equals YES.  
address = “[http://www.rawguru.com/picturemov.html](http://www.rawguru.com/picturemov.html)”;  
target\_winName = “kirupa”;  
width = 250;  
height = 200;  
toolbar = 0;  
location = 0;  
directories = 0;  
status = 0;  
menubar = 0;  
scrollbars = 0;  
resizable = 0;  
// sends data back to the function  
openWinCentre(address, target\_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);  
}[/AS]  
for the frame  
[AS]Movieclip.prototype.openWinCentre = function(url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {  
getURL(“java\*\*\*\*script:var myWin; if(!myWin || myWin.closed){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+"))+’"+"’)}else{myWin.focus();};void(0);");  
};[/AS]  
and the html file

```php
<HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">

<TITLE>picturemov</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<!--select belowdavid wolfe's new years retreat2003select belowdavid wolfe's new years retreat2003select belowdavid wolfe's new years retreat2003select belowdavid wolfe's new years retreat2003select belowdavid wolfe's new years retreat2003select belowdavid wolfe's new years retreat2003--><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
 WIDTH="350 HEIGHT="300" id="picturemov" ALIGN="">
 <PARAM NAME=movie VALUE="picturemov.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF><EMBED src="picturemov.swf" quality=high bgcolor=#FFFFFF WIDTH="350" HEIGHT="300" NAME="picturemov" ALIGN=""
 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>

</OBJECT>
</BODY>
</HTML>

```

[EDIT by [**kax**](http://www.kirupaforum.com/forums/member.php?s=&action=getinfo&userid=1451)]Please use the proper tags, [**AS][**/AS] and [**PHP][**/PHP], when posting code.[/EDIT]

---

<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: [July 26, 2003, 5:44am UTC](https://forum.kirupa.com/t/pop-up-window/26771/6 "2003-07-26T05:44:21Z")

</div>

What are the width and height of your swf? It looks like it’s a lot bigger than 250x200.

---

<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: [July 26, 2003, 5:52am UTC](https://forum.kirupa.com/t/pop-up-window/26771/7 "2003-07-26T05:52:56Z")

</div>

my swf is 350 by 300 this is how it looks when i plugged in those numbers  
[http://www.rawguru.com/gurumov.html](http://www.rawguru.com/gurumov.html)

i dont get why doesnt my swf touch the side of the pop up

---

<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: [July 26, 2003, 6:03am UTC](https://forum.kirupa.com/t/pop-up-window/26771/8 "2003-07-26T06:03:29Z")

</div>

I looked at the HTML coding of that page that opens up in the pop up and I noticed that you didn’t remove the margins. In your HTML change your body tag to this.

```php
<BODY bgcolor="#FFFFFF" topmargin="0" leftmargin="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: [July 26, 2003, 6:03am UTC](https://forum.kirupa.com/t/pop-up-window/26771/9 "2003-07-26T06:03:46Z")

</div>

i wanted to load this swf on top of my page when people clicked on pictures and it loaded on top but none of the buttons worked because the section was loaded into the main movie.  
is there another way to view this picture gallery when a person clicks on a 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: [July 26, 2003, 6:04am UTC](https://forum.kirupa.com/t/pop-up-window/26771/10 "2003-07-26T06:04:25Z")

</div>

o ok  
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: [July 26, 2003, 6:10am UTC](https://forum.kirupa.com/t/pop-up-window/26771/11 "2003-07-26T06:10:22Z")

</div>

I did that and it’s still the same thing

---

<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: [July 26, 2003, 6:14am UTC](https://forum.kirupa.com/t/pop-up-window/26771/12 "2003-07-26T06:14:17Z")

</div>

Take a screen shot of it and show me what you’re talking about. This is what I see.

---

<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: [July 26, 2003, 6:22am UTC](https://forum.kirupa.com/t/pop-up-window/26771/13 "2003-07-26T06:22:41Z")

</div>

thats what i see too

---

<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: [July 26, 2003, 6:25am UTC](https://forum.kirupa.com/t/pop-up-window/26771/14 "2003-07-26T06:25:58Z")

</div>

when i view my swf by itself it looks like it’s 350X300 but not in the pop up. i want it to fix exactly. in the button action do i change this something else

target\_winName = “kirupa”;

---

<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: [July 26, 2003, 6:34am UTC](https://forum.kirupa.com/t/pop-up-window/26771/15 "2003-07-26T06:34:13Z")

</div>

Ok now I know what you’re talking about, but I’m not sure if this is a the problem or not, but take a look at the html code for that pop up page. This is what you have.

```php

 WIDTH="350 HEIGHT="300" id="picturemov" ALIGN="">

```

There’s a quotation mark missing after 350. I think that’s what’s screwing up the sizes.

---

<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: [July 26, 2003, 6:38am UTC](https://forum.kirupa.com/t/pop-up-window/26771/16 "2003-07-26T06:38:56Z")

</div>

finally. it FITS. i would have never seen that. Thanks soo much! You’re a pro. Now i can go to sleep peacefully. gnight  
Happy flashin’  
Alex

---

<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: [July 26, 2003, 6:39am UTC](https://forum.kirupa.com/t/pop-up-window/26771/17 "2003-07-26T06:39:26Z")

</div>

You’re welcome. 😛
