daojishi

var i:Number=60;
function daojishi(e:TimerEvent):void{
if(i>0){
i--;
if(i<0){
Time.stop();
}
}
var Time:Time=new Time(1000);
Time.addEventListener(TimerEvent.TIMER,daojishi);
Time.star()

你可能感兴趣的:(Flash)