
Код:
time = function () {
var my_date:Date = new Date();
sec = my_date.getSeconds();
sec1 = my_date.getSeconds();
sec2 = 10*(1+(Math.ceil(sec)/10-Math.ceil(Math.ceil(sec1)/10)));
if (sec2 == 10) {
sec2 = 0;
}
updateAfterEvent();
this.attachMovie("fire"+sec2, "fire", this.getNextHighestDepth(), {_x:100, _y:100});
trace(sec2);
};
setInterval(time, 1000);
