Código :
//first frame today = new Date(); seconds = Math.floor((event.getTime()-today.getTime())/1000); minutes = Math.floor(seconds/60); hours = Math.floor(minutes/60); days = Math.floor(hours/24); cday = days; if (cday<10) { cday = "0"+cday; } chour = hours%24; if (chour<10) { chour = "0"+chour; } cminute = minutes%60; if (cminute<10) { cminute = "0"+cminute; } csecond = seconds%60; if (csecond<10) { csecond = "0"+csecond; } //create a dynamic text named input input = cday+" "+chour+" "+cminute+" "+csecond; // year, month -1, day, hour event = new Date(2001, 11, 31, 24); //second frame gotoAndPlay (1);