英语翻译onClipEvent (enterFrame) {_root.tt = _root.timelimite- int(getTimer() / 1000)+int(_root.timestart); hh = int(_root.tt / 3600);mm = int((_root.tt-hh*60)/60);ss = int(_root.tt-hh*3600- mm*60);if (hh < 10) {_root.h = "0" + String(hh);} else

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/28 17:04:27

英语翻译onClipEvent (enterFrame) {_root.tt = _root.timelimite- int(getTimer() / 1000)+int(_root.timestart); hh = int(_root.tt / 3600);mm = int((_root.tt-hh*60)/60);ss = int(_root.tt-hh*3600- mm*60);if (hh < 10) {_root.h = "0" + String(hh);} else
英语翻译
onClipEvent (enterFrame) {
_root.tt = _root.timelimite- int(getTimer() / 1000)+int(_root.timestart);
hh = int(_root.tt / 3600);
mm = int((_root.tt-hh*60)/60);
ss = int(_root.tt-hh*3600- mm*60);
if (hh < 10) {
_root.h = "0" + String(hh);
} else {
_root.h = String(hh);
}
if (mm < 10) {
_root.m = "0" + String(mm);
} else {
_root.m = String(mm);
}
if (ss < 10) {
_root.sec = "0" + String(ss);
} else {
_root.sec = String(ss);
}
if (_root.tt == 0) {
_root.gotoAndStop(3);
}
}

英语翻译onClipEvent (enterFrame) {_root.tt = _root.timelimite- int(getTimer() / 1000)+int(_root.timestart); hh = int(_root.tt / 3600);mm = int((_root.tt-hh*60)/60);ss = int(_root.tt-hh*3600- mm*60);if (hh < 10) {_root.h = "0" + String(hh);} else
onClipEvent (enterFrame) {
\\当影片进入帧;
_root.tt = _root.timelimite- int(getTimer() / 1000)+int(_root.timestart);
\\主时间轴上的 tt 值赋
hh = int(_root.tt / 3600);
\\ hh等于上面(tt)除以3600换算的,应该是小时吧
mm = int((_root.tt-hh*60)/60);
\\这是分钟 mm的赋值和换算过程
ss = int(_root.tt-hh*3600- mm*60);
\\秒,取整
if (hh < 10) {
_root.h = "0" + String(hh);
\\如果 小时数小于两个数,就在主时间轴的H文本框里显示 前面是0,后面是hh
} else {
_root.h = String(hh);
\\否则,直接显示hh
}
if (mm < 10) {
_root.m = "0" + String(mm);
} else {
_root.m = String(mm);
\\这是分钟,跟上面的小时一样,判断如何显示的.
}
if (ss < 10) {
_root.sec = "0" + String(ss);
} else {
_root.sec = String(ss);
\\秒,同上.
}
if (_root.tt == 0) {
_root.gotoAndStop(3);
\\最后一句,如果主时间轴上的tt为0时,跳到第三帧开始播放.
}
------------------可能是一个倒计时的一段代码吧.