关于FLASH中显示时间的简单代码问题???

2024-12-02 09:45:55
推荐回答(1个)
回答1:

sec = "00";
min = "00";
time = function () {
sec = int(sec)+1;
if (sec == 60) {
sec = "00";
min = int(min)+1;
}
if (length(sec) == 1) {
sec = "0"+sec;
}
if (length(min) == 1) {
min = "0"+min;
}
};
setInterval(time,1000);
将两个动态文本的变量设置为min和sec