hi all experts,
I have a code to play a single 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..
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 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 = 30000 //in milliseconds
function stopSwf(){
swfobject.removeSWF("swfLoop");
startSwf();
}
function startSwf() {
$("body").append("<div id='swfLoop'></div>");
swfobject.createSWF({data:"123.swf", width:900, height:400}, null, "swfLoop");
setTimeout('stopSwf()', restartTime);
}
</script>
</head>
<body>
</body>
</html>
here u can any swf file, here 30000 is 30sec, the duration after which the flash file will reload automatically...
Here i have c# code for the above scenario & it runs the loop for 3 times(starting from 0) and i want to implement the same scenario for above playing multiple flash files in html...
public static void Main[]
{
string[] strArray = { "A","B","C" };
for (int a = 2; a >= 0; a--)
{
foreach (string str in strArray)
{
Console.WriteLine(str);
}
}
Console.ReadLine();
}
can any one help me in doing this..
thanks
shameer ali shaik