It should look like:
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF("swfs/checkbox_63x64.swf", "flash-container-1",
"63", "64", "9.0.0", "expressInstall.swf", "false", {wmode:"transparent"});
swfobject.embedSWF("swfs/hp_movie0506.swf", "flash-container-2",
"693", "186", "9.0.0", "expressInstall.swf", "false",
{wmode:"transparent"});
</script>
Aran
One thing I noticed when looking at the server traffic on your test page (
http://www.worldmassage.com/vegan/test2.htm ):
http://www.worldmassage.com/vegan/video/m2.swf does not exist in this
location. Is it actually on the server?
If I modify your code slightly (absolute paths to your sever + change to
meatix.swf which actually exists), then all works:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<script type="text/javascript"
src="http://www.worldmassage.com/vegan/swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF("http://www.worldmassage.com/vegan/video/meatrix.swf",
"one", "480", "310", "9.0.0", false, false, {play:"false",loop:"false"},
false);
</script>
<script type="text/javascript">
swfobject.embedSWF("http://www.worldmassage.com/vegan/video/meatrix.swf",
"two", "480", "310", "9.0.0", false, false, {play:"false",loop:"false"},
false);
</script>
</head>
<body>
<div id="one">
<a href="http://www.adobe.com/go/getflashplayer">
<img
src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gi
f" alt="Get Adobe Flash player">
</a>
</div>
<br>
<div id="two">
<a href="http://www.adobe.com/go/getflashplayer">
<img
src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gi
f" alt="Get Adobe Flash player">
</a>
</div>
</body>
</html>
Please also not Bobby's answer on sharing flashvars etc. ON your test page,
you are fine in that you are defining vars directly in the embedSWF() calls.
In your code below you EITHER need to:
a) grab 2.1 beta 7 of swfobject.js - bug is fixed
b) define separate flashvar, attributes, andparam vars for each embedSWF()
call
Cheers,
Aran
-----Original Message-----
From: swfo...@googlegroups.com [mailto:swfo...@googlegroups.com] On
Behalf Of wookee
Sent: Friday, 13 June 2008 8:49 PM
To: SWFObject
UNIX servers are generally case sensitive, where as I'm guessing your dev
machine is Windows...