hi all experts,
I have a code to play a flash file in html, here i have used jquery as well as javascript,
here its running fine for 1 flash file, but i want to run multiple flash files 1 after the other depending on the duration..
i want to play multiple files as a loop..
you can have the file from attachment..
here's my code..
here 74700 in milliseconds is the duration for which the flash file reloads..
<!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 src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" src="http://swfobject.googlecode.com/svn-history/r409/trunk/swfobject/swfobject.js"></script>
<script type="text/javascript">
$(document).ready(function(){
startSwf()
})
var restartTime = 74700 //in milliseconds
function stopSwf(){
swfobject.removeSWF("swfLoop");
startSwf();
}
function startSwf() {
$("body").append("<div id='swfLoop'></div>");
swfobject.createSWF({data:"1.swf", width:900, height:400}, null, "swfLoop");
setTimeout('stopSwf()', restartTime);
}
</script>
</head>
<body>
</body>
</html>
any help will be appreciated..
thanks
shameer ali shaik