# Load flash file in new window

**URL:** https://forum.kirupa.com/t/load-flash-file-in-new-window/15622
**Category:** Uncategorized
**Created:** [March 16, 2003, 6:10am UTC](https://forum.kirupa.com/t/load-flash-file-in-new-window/15622 "2003-03-16T06:10:13Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![digitalxwitch](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@digitalxwitch](https://forum.kirupa.com/u/digitalxwitch)
#### Post date: [March 16, 2003, 6:10am UTC](https://forum.kirupa.com/t/load-flash-file-in-new-window/15622/1 "2003-03-16T06:10:13Z")

</div>

:hangover:  
2 questions…can someone please help me?

I have a navigation swf and several other swf files (diff. sections of the site ie. about, contact…etc etc) that would load right below this navigation when users click on the buttons. I used the root.loadmovie thing…

ok…this is done a lot but like when you go onto certain flash websites, it’s a HTML page first and then the flash window pops up seperately in a fixed window…

so how do I do that, and also how do I load two swf’s in the same pop up? since I have my navigation swf plus i need a homepage swf that goes right below the navigation swf?

ugh…i hate explaining things, never make any sense to me. LOL

thank you!(-:

---

<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: [March 16, 2003, 7:57am UTC](https://forum.kirupa.com/t/load-flash-file-in-new-window/15622/2 "2003-03-16T07:57:46Z")

</div>

1)what if the visitor clicked on a link to open the pop-up.

1. You can have the 2 swfs in different layers on the same file. Just load in the menu on the next level up. (Then they’d be in the same 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: [March 16, 2003, 9:14am UTC](https://forum.kirupa.com/t/load-flash-file-in-new-window/15622/3 "2003-03-16T09:14:19Z")

</div>

:nerd:  
ok, how do I make the flash pop up after clicking on a link?

thanks seretha!

---

<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: [March 16, 2003, 9:26am UTC](https://forum.kirupa.com/t/load-flash-file-in-new-window/15622/4 "2003-03-16T09:26:10Z")

</div>

Howdy…

Do the search on the forum with ‘javascript popup’… 😉

---

<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: [March 16, 2003, 9:36am UTC](https://forum.kirupa.com/t/load-flash-file-in-new-window/15622/5 "2003-03-16T09:36:34Z")

</div>

Here’s my javascript popup:

```php
<script language="javascript">
<!-- This script is Copyright © 1999 - 2003 by Christopher William
Coddington. All rights reserved.
  Protected by international copyright laws. -->
<!--

function popup() {

window.open ("page.html","window name","height=200,width=400,toolbar=no,menubar=no,scrollbars=0,resizable=no");

}

// -->
</script>

```

Explanation:

1.) function **popup** () {  
This is the name of the window you want to open. You can select any name you like. Refrain from using numbers and short names, due to it causes the script to fail.

2.) window.open(“ **page.html** ”,“ **window name** ”,“height= **200** ,width= **400** ,toolbar= **no** ,menubar= **no** ,scrollbars= **0** ,resizable= **no** ”);

}

// --\>

Okay, first thing is first. **page.html** - Just simply enter the page you are targeting. It can be any file you want to target. \*.php, \*.swf, \*.html, \*.gif, \*.jpg, etc.

**window name** - if you read the explanation at the first part of the script, where it said function **popup** (), the word “popup” is the window name. Therefore you would replace “window name” with “popup”.

The bold numbers on height and width just mean you can adjust them to be the exact pixel width you desire.

On the toolbar, menubar, and resizable options, the word “no” is in bold. This means you have the option of either “yes” or “no”. If you want any of these options available to the site visitor, change these values to “yes”, if not, set the values to “no”.

The scrollbars value is set at 0 at the moment. You can only set it to 2, making 2 scrollbars show up on the browser. A standard browser only has 2 scrollbars, so you can’t go any higher than 2. If you have any other questions, feel free to PM me or e-mail me.

Christopher William Coddington (Xzandar / cwcandromeda)

---

<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: [March 16, 2003, 6:21pm UTC](https://forum.kirupa.com/t/load-flash-file-in-new-window/15622/6 "2003-03-16T18:21:22Z")

</div>

ok i was able to get the popup working, but how do I load my navigation and my homepage flash files again? sorry…i thought i understood. lol…  
Or should I have not built my navigation and home page seperately?:block:

---

<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: [March 16, 2003, 7:38pm UTC](https://forum.kirupa.com/t/load-flash-file-in-new-window/15622/7 "2003-03-16T19:38:22Z")

</div>

Most likely with frames. You will have to describe to me the arrangement you planned to put it all up in, for example: Navigation on left, and main content on the right.

Christopher William Coddington (Xzandar / cwcandromeda)

---

<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: [March 16, 2003, 9:13pm UTC](https://forum.kirupa.com/t/load-flash-file-in-new-window/15622/8 "2003-03-16T21:13:56Z")

</div>

nevermind, i figured it out… 😊
