# Loading multiple swfs into one html...help senoc

**URL:** <https://forum.kirupa.com/t/loading-multiple-swfs-into-one-html-help-senoc/12981>\
**Category:** Uncategorized\
**Created:** [February 7, 2003, 12:23am UTC](https://forum.kirupa.com/t/loading-multiple-swfs-into-one-html-help-senoc/12981 "2003-02-07T00:23:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pithcell](https://avatars.discourse-cdn.com/v4/letter/p/3d9bf3/32.png) [@pithcell](https://forum.kirupa.com/u/pithcell)\
**Post date:** [February 7, 2003, 12:23am UTC](https://forum.kirupa.com/t/loading-multiple-swfs-into-one-html-help-senoc/12981/1 "2003-02-07T00:23:36Z")

</div>

hey all,  
senocular gave me a GREAT answer to this question i had of how to load multiple jps into one html page as a popup window…now i want to load multiple swfs with quicktimes imbeded into one html page…i tryed using the same method but it doesnt give me the swfs, rather just a blank window…what change do i have to make in the code or html page…

here is the thread with the original question:  
[http://kirupaforum.com/showthread.php?threadid=13881](http://kirupaforum.com/showthread.php?threadid=13881)

here is the answer from SENOCULAR  
[http://www.umbc.edu/interactive/fla/openImage.zip](http://www.umbc.edu/interactive/fla/openImage.zip)

thanks senoc for all the help and any more would be greatly appreciated as usual

thanks to all  
peace  
Pith

---

<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:** [February 7, 2003, 3:10am UTC](https://forum.kirupa.com/t/loading-multiple-swfs-into-one-html-help-senoc/12981/2 "2003-02-07T03:10:21Z")

</div>

you have to change the javascript from writing the image tag to writing the full object and embed tags.

---

<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:** [February 7, 2003, 6:09am UTC](https://forum.kirupa.com/t/loading-multiple-swfs-into-one-html-help-senoc/12981/3 "2003-02-07T06:09:04Z")

</div>

hey senoc…  
again coming to the rescue, so would it mean changing the code in flash and html???

that is, here is the code in flash…

OpenImg = function (currImage) { getURL("javascript:void(window.open('[http://www.jacquelinehumphries.net/images/painting/09/image.html?"+currImage+"’,‘Windowname’,‘width=800,height=800’));"](http://www.jacquelinehumphries.net/images/painting/09/image.html?%22+currImage+%22','Windowname','width=800,height=800'));%22));};

---

<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:** [February 7, 2003, 1:26pm UTC](https://forum.kirupa.com/t/loading-multiple-swfs-into-one-html-help-senoc/12981/4 "2003-02-07T13:26:39Z")

</div>

the only thing there to change is currImage That specifies the image name. Its the image.html you have to change the javascript of. In there it writes out the HTML to display the image. You need to change that from displaying the image HTML to displaying the OBJECT and EMBED HTML used for adding Flash movies.

… unless you have a LOT of these movies to add, Id do it by hand.

---

<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:** [February 7, 2003, 2:51pm UTC](https://forum.kirupa.com/t/loading-multiple-swfs-into-one-html-help-senoc/12981/5 "2003-02-07T14:51:46Z")

</div>

hey senoc,  
i think i understand what you mean…  
so here is what i tried…unfortunatly failed:

\<html\>  
\<head\>  
\<title\>Videos\</title\>  
\<meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1”\>  
\<body bgcolor=#FFFFFF topmargin=0 bottommargin=0 leftmargin=0 rightmargin=0 marginheight=0 marginwidth=0\>  
\<script\>  
if (location.search){  
document.write("\<img src=’" + location.search.slice(1,location.search.length) + “’\>”);  
}else{  
document.write("\<center\>\<br\>\<br\>\<font color=#aaaaaa\>\<b\>No image provided.\</b\>\</font\>\</center\>");  
}  
\<embed src=“miasmalow.swf” quality=high bgcolor=#FFFFFF width=“320” height=“250” name=“miasma” align=""  
type=“application/x-shockwave-flash” pluginspage=“[http://www.macromedia.com/go/getflashplayer](http://www.macromedia.com/go/getflashplayer)”\>  
\</embed\>  
\</object\>\</td\>  
\</script\>  
\</body\>  
\</html\>

and for the flash end of the script i changed currImage to currVideos, but my guess is the if…else has to be changed also…not sure though…  
thanks for the persistence…my swf is named miasmalow

cheers  
Pravin

---

<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:** [February 7, 2003, 2:53pm UTC](https://forum.kirupa.com/t/loading-multiple-swfs-into-one-html-help-senoc/12981/6 "2003-02-07T14:53:42Z")

</div>

hey for some reason the code didnt show, let me try again

\<html\>  
\<head\>  
\<title\>Videos\</title\>  
\<meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1”\>  
\<body bgcolor=#FFFFFF topmargin=0 bottommargin=0 leftmargin=0 rightmargin=0 marginheight=0 marginwidth=0\>  
\<script\>  
if (location.search){  
document.write("\<img src=’" + location.search.slice(1,location.search.length) + “’\>”);  
}else{  
document.write("\<center\>\<br\>\<br\>\<font color=#aaaaaa\>\<b\>No image provided.\</b\>\</font\>\</center\>");  
}  
\<embed src=“miasmalow.swf” quality=high bgcolor=#FFFFFF width=“320” height=“250” name=“miasma” align=""  
type=“application/x-shockwave-flash” pluginspage=“[http://www.macromedia.com/go/getflashplayer](http://www.macromedia.com/go/getflashplayer)”\>  
\</embed\>  
\</object\>\</td\>  
\</script\>  
\</body\>  
\</html\>

---

<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:** [February 7, 2003, 2:58pm UTC](https://forum.kirupa.com/t/loading-multiple-swfs-into-one-html-help-senoc/12981/7 "2003-02-07T14:58:55Z")

</div>

ive attached a txt file seeing as posting in here isnt working

---

<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:** [February 7, 2003, 3:22pm UTC](https://forum.kirupa.com/t/loading-multiple-swfs-into-one-html-help-senoc/12981/8 "2003-02-07T15:22:45Z")

</div>

the javascript writes the html…

document.write("\<\*\*img src=’" + location.search.slice(1,location.search.length) + “’\>”);  
is writing to html the img tag which loads the image. Youd have to do that with the flash tags (object and embed) using document write.

its a pain in the \*\*\* really, I still think you should be doing it manually… or even since you ARE dealing with flash use loadmovie. Im not sure what it is you are doing exactly, but I would think thered be an easier way around it than trying to convert that image example
