Код:

Код:
function autoplayInit() {
startTime = getTimer();
}
function autoplay() {
if (autoplayStatus != 0) {
curTime = getTimer();
elapsedTime = curTime-startTime;
if (elapsedTime>=(delay*1000)) {
if (_root._currentframe == _root._totalframes) {
_root.gotoAndStop(1);
} else {
_root.nextFrame();
}
autoplayInit();
}
}
}
autoplayStatus = 0;