This content has been marked as final.
Show 3 replies
-
1. Re: Random Time Interval
Ned Murphy May 21, 2011 4:52 AM (in response to d0brin)I'm not sure if you meant 2 to be the low, so the following lets you specify the minimum and maximum delay. Try...
stop();
var minInterval = 0;
var maxInterval = 180000; // 3 minutes in msecvar randInterval = minInterval + Math.random()*(maxInterval-minInterval);
var timeout = setTimeout(playThru, randInterval);
function playThru(){
gotoAndPlay(2);
} -
2. Re: Random Time Interval
d0brin May 22, 2011 2:07 PM (in response to Ned Murphy)thanks. it's exactly what i needed
-



