pause timeline using actionscript 2.0
stop();
setTimeout (
function()
{
play();
}, 1000);
setTimeout (
function()
{
play();
}, 1000);
and AS3 code below:
stop();
var nInterval = setInterval(Play, 3000);
function Play() {
clearInterval(nInterval);
gotoAndPlay(_currentframe+1);
}
clearInterval(nInterval);
gotoAndPlay(_currentframe+1);
}
No comments:
Post a Comment