
Код AS1/AS2:
var newYearTime:Number = 1262293200000;

Код AS1/AS2:
var intervalId:Number;
function funcBackTimer(){
var my_date:Date = new Date();
_root.nowTimestamp = my_date.getTime()
razn = Math.round((_root.newYearTime - _root.nowTimestamp)/1000);
d = Math.floor(razn/86400);
ost = razn - d*86400;
h = Math.floor(ost/3600);
ost = ost-h*3600;
m = Math.floor(ost/60);
s = ost-m*60 ;
backtimerField_txt = 'До нового года '+d+'д. '+h+'ч. '+m+'мин. '+s+'сек.';
}
intervalId = setInterval(this,'funcBackTimer',1000);