It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

settimeout with flash swf

settimeout with flash swf

Postby guillem on Sat Sep 17, 2011 1:21 pm

hi all.

i'm stuck with this problem, so i thank any help.
the thing is i'm developing a web site for a foundation. I'm using a table, and on the right column i should be showing 4 times a spiral swf, each one 10 seconds after the previous. i've tryed showing them all together, without a timeout, and works fine, but when i use a timeout, the next spiral swf opens in a new page, losing the rest of the web page. just to be clear, each spiral swf deploys 4 spirals in 4 colors.
it's all here: http://sinerzia.com/tdiea

the not-working code:
<div style="float: right;">

<script type="text/javascript">
function spirar()
{
alert('test!');

AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','202','heigh t','160','title','feaiea','src','espiral','quality ','high','pluginspage','http://www.macromedia.com/go/getflashplayer','bgcolor','#ffffff','movie','espir al' ); //end AC code

document.write('<noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="202" height="160" title="feaiea"><param name="movie" value="espiral.swf"> <param name="quality" value="high"> <embed src="espiral.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="202" height="160" bgcolor="#ffffff"></embed> </object></noscript>');

document.write('<br>');
}

spirar();
setTimeout('spirar()', 10000);
setTimeout('spirar()', 20000);
setTimeout('spirar()', 30000);
</script>

</div>

i've tryed several alternatives, but can't get out of it.
any help??? thanks in advance
greetings from l'alt empordà, tramontana hits
guillem
guillem
 
Posts: 3
Joined: Sat Sep 17, 2011 12:56 pm

Who is online

Users browsing this forum: No registered users and 3 guests