You have an issue in that you are writing the same ID to both flash files.
You need two separate attributes objects with different Ids like:
var attributesM1 = {};
attributes.id = "M3_V01";
var attributesM2 = {};
attributes.id = "M3_V02";
swfobject.embedSWF("M3_Video_01.swf", "flashDiv1", "250", "235",
"9.0.0", "expressInstall.swf", flashvars, params, attributesM1);
swfobject.embedSWF("M3_Video_02.swf", "flashDiv2",
"595", "385",
"9.0.0", "expressInstall.swf", flashvars, params, attributesM2);
Also, I can click the link before I see the player appear in IE7/Vista.
Aran
-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Rossi
Sent: Friday, 20 February 2009 9:05 AM
To: SWFObject
Subject: Problems with Multiple SWFs in one page
I am having a problem where I have two SWFs playing on one HTML page.
My problem is that Internet Explore will not let the user click on a
link (go to another page) until at least on of the SWFs load. These
are SWF playing FLV using the default Flash Player controls.
Any ideas? Thanks-
|rossi|
Test Link:
http://www.reactionstudios.biz/bottlerocket/m3TEST/M3_Video_TEST.html
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
var params = {};
params.play = "false";
params.loop = "false";
params.menu = "false";
params.quality = "best";
params.scale = "noscale";
params.allowfullscreen = "true";
var attributes = {};
attributes.id = "M3_V01";
swfobject.embedSWF("M3_Video_01.swf", "flashDiv1",
"250", "235",
"9.0.0", "expressInstall.swf", flashvars, params, attributes);
swfobject.embedSWF("M3_Video_02.swf", "flashDiv2",
"595", "385",
"9.0.0", "expressInstall.swf", flashvars, params, attributes);
</script>
</head>
<body>
<a href="../M3TEST/news_articles.html">TEST LINK</a>
<div id="flashDiv1">
<a href="http://www.adobe.com/go/getflashplayer">
<img
src="http://www.adobe.com/images/shared/download_buttons/
get_flash_player.gif" alt="Get Adobe Flash player" />
</a></div>
<div id="flashDiv2">
<a href="http://www.adobe.com/go/getflashplayer">
<img
src="http://www.adobe.com/images/shared/download_buttons/
get_flash_player.gif" alt="Get Adobe Flash player" />
</a></div>
</body>
</html>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---