i am having 4 flash files in .swf format, they are playing in a loop, 1 after the other, for n no of times..
here’s my code,
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>test page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var i=1;
var restartTime = 10700; //in milliseconds
function stopSwf()
{
i=i+1;
swfobject.removeSWF("swfLoop");
startSwf();
}
function startSwf()
{
if(i==5)
{
i=1;
}
$("body").append("<div id='swfLoop'></div>");
var flash = i+".swf";
swfobject.createSWF({data:flash, width:900, height:400}, null, "swfLoop");
setTimeout('stopSwf()', restartTime);
}
</script>
</head>
<body onload="startSwf()">
</body>
</html>
my problem is, the above code is working fine in all browsers, except IE…
can any one help me in making this work in IE
thanks
shameer ali shaik
For your question I have already read an answer which regards to this swf object. It is an js object which will give the functions regarding to your problem