hi i need the timeline to play but pause for 5sec along the way.
what would be the code for that.??
my code but wont work…
// sec = number of seconds
function paused(sec) {
stop(); // action to pause
var i = sec - 1;
var t = setInterval(function () {
if (i == 0) {
clearInterval(t);
play(); // action to continue
}
i--;
}, 1000);
}