What i need is a code that forexample is placed on the first frame of my movie. Also i have there a stop(); code. What i need is on random time intervals, the movie to start playing from FRAME 2. Those intervals to be restricted maximum for 2-3 minutes. I mean for example not to wait an hour or so for the function to be executed. Can you help me with that?
I'm not sure if you meant 2 to be the low, so the following lets you specify the minimum and maximum delay. Try...
var minInterval = 0;
var maxInterval = 180000; // 3 minutes in msec
var randInterval = minInterval + Math.random()*(maxInterval-minInterval);
var timeout = setTimeout(playThru, randInterval);
thanks. it's exactly what i needed