all groups > flash actionscript > september 2005 >
You're in the

flash actionscript

group:

looping for x number of seconds


looping for x number of seconds manhattanmediaworks
9/22/2005 10:50:35 PM
flash actionscript:
Folks,

I want to load a .swf into main timeline, but only after 10 seconds has
elapsed from the time my script begins to run. Would anyone be so kind to give
me a hand with a script. I can load the .swf in frame 2 hundred whatever, but
that is tacky.

Thanks!
Re: looping for x number of seconds mcwelch16
9/22/2005 11:02:09 PM
var seconds = 10;
var interval_id = setInterval(function_name, seconds*1000, param1, param2,
etc);

function function_name(param1, param2, etc)
{
//code to be executed goes here
clearInterval(interval_id);
}
Re: looping for x number of seconds manhattanmediaworks
9/22/2005 11:37:45 PM
AddThis Social Bookmark Button