【发布时间】:2014-12-24 17:22:22
【问题描述】:
我正在运行闪存倒计时是倒计时到指定日期的倒计时。我想在播放 30 秒后停止倒计时。我需要做什么?
counter.onEnterFrame = function(){
currentDate = new Date();
currentMillisecs = currentDate.getTime();
this.msecs = eventMillisecs - currentMillisecs;
if (this.msecs <= 0){
// the event time has been reached!
// play the next frame for the result of the countdown.
play();
return;
}
【问题讨论】:
标签: javascript flash animation