#12003/3/11 11:09:55
pauseDuration = 5*1000;
framesinLoop = 1;
if (startTime == null) {
startTime = getTimer();
gotoAndPlay(_currentframe-framesinLoop);
} else {
lapsedTime = getTimer()-startTime;
if (lapsedTime < pauseDuration) {
gotoAndPlay (_currentframe-framesinLoop);
} else {
startTime = null;
gotoAndPlay (_currentframe+1);
}
}
pauseDuration为停顿时间
framesinLoop为与当前帧构成循环的帧数差(可以为任何数)
startTime为停顿开始时间
_currentframe为当前帧