setTimeout(function(){nextFrame()},5000);
function goto() {
nextFrame();
}
setInterval(goto, 5000);
在flash的帧上写:
var btime = getTimer(); //开始计时点;
var outime = 5000; //时间;
this.onEnterFrame = function() {
ntime = getTimer(); //即时计时;
if (ntime-btime>outime) {
this.play();
delete this.onEnterFrame;
} else {
ntime = getTimer(); //更新即时计时;
trace(btime);
}
};