# Pop\_Up\_Windows?

**URL:** <https://forum.kirupa.com/t/pop-up-windows/5225>\
**Category:** flash\
**Created:** [September 5, 2002, 1:01am UTC](https://forum.kirupa.com/t/pop-up-windows/5225 "2002-09-05T01:01:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allen](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@Allen](https://forum.kirupa.com/u/Allen)\
**Post date:** [September 5, 2002, 1:01am UTC](https://forum.kirupa.com/t/pop-up-windows/5225/1 "2002-09-05T01:01:40Z")

</div>

Hello all,

Wondering if there is a work around to this problem -

I have all my code in place to open a pop\_up window on a button press. The problem I am running into is my .swf is 500x300 but when it opens in the new window which is Java script driven to open 500x300 my .swf is not aligned to the top left corner so my movie gets clipped.

What code do I need to use - I am thinking it is in the html tags but am lost as to what I need to do?

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:** [September 5, 2002, 1:26am UTC](https://forum.kirupa.com/t/pop-up-windows/5225/2 "2002-09-05T01:26:17Z")

</div>

Are you trying to open a pop up window that contains an embedded swf? I think that’s what you mean. If you click a button a window opens with the new swf?

If that’s the case you need to centralise the new swf in a html page.

Then call the page with javascript on a button click but set the dimensions of the window to whatever size you want.

---

<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:** [September 5, 2002, 2:03am UTC](https://forum.kirupa.com/t/pop-up-windows/5225/3 "2002-09-05T02:03:42Z")

</div>

```php

<body topmargin="0" leftmargin="0">

```

Make your body tag look like that (plus whatever info you have in there such as background color, font color, etc).

This will remove the 2 margins around your page so your movie shouldn’t be clipped.

If you want go go all out, do this…

```php

<body topmargin="0" leftmargin="0" bottommargin="0" rightmargin="0" marginwidth="0" marginheight="0">

```

This removes \<b\>all\</b\> margins.

---

<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:** [September 5, 2002, 4:39am UTC](https://forum.kirupa.com/t/pop-up-windows/5225/4 "2002-09-05T04:39:08Z")

</div>

Thank you all very much! That is what I was missing 😉

---

<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:** [September 5, 2002, 7:28am UTC](https://forum.kirupa.com/t/pop-up-windows/5225/5 "2002-09-05T07:28:17Z")

</div>

lostinbeta is right. That’s what I use for games in pop up windows. It wraps round the swf neatly and there are no margins.

---

<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:** [September 5, 2002, 8:45am UTC](https://forum.kirupa.com/t/pop-up-windows/5225/6 "2002-09-05T08:45:48Z")

</div>

yeah margins get anoying…u know how to turn  
em off in dreamweaver? hehe. I dont know html… lol

---

<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:** [September 5, 2002, 8:48am UTC](https://forum.kirupa.com/t/pop-up-windows/5225/7 "2002-09-05T08:48:44Z")

</div>

oh never mind…i worked it out hehe
