Loading multiple swfs into one html...help senoc

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

here is the answer from SENOCULAR
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

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

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’));");};

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.

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”>
</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

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”>
</embed>
</object></td>
</script>
</body>
</html>

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

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