Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

random time delay

Status
Not open for further replies.

lucidtech

IS-IT--Management
Jan 17, 2005
267
US
I have three clips. One of them is chosen randomly, then that clip is played all the way through. What would like to do is this :

when the clip stops playing, it waits a random number of minutes (say 5 - 10 minutes) before it randomly starts one of the other two animations.

For example... a clip of the number one rotates. When it is finished, either a clip of the number two or a clip of the number three is chosen. From there, flash waits a random number of minutes before playing the chosen clip.

I know how to generate random numbers, I just don't know how to set up a time delay in Flash. Any help with this would be greatly appreciated.
 
setInterval("someFunction",15*1000)

will call named function every 15 mins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top