代码在这里:
on (press) {
i = i+1;
if (Number(i)%2 != 0) {
var taoyb;
taoyb = setInterval(function () {
_root.tt.text = Number(random(900)+Number(100));
updateAfterEvent();
}, 1);
_root.bt.kongzhi.text = "stop";
_root.bt.kongzhi._x += 1;
}
if (Number(i)%2 == 0) {
_root.bt.kongzhi.text = "start";
_root.bt.kongzhi._x -= 1;
clearInterval(taoyb);
}
}
Flash 动画:
on (press) {
i = i+1;
if (Number(i)%2 != 0) {
var taoyb;
taoyb = setInterval(function () {
_root.tt.text = Number(random(900)+Number(100));
updateAfterEvent();
}, 1);
_root.bt.kongzhi.text = "stop";
_root.bt.kongzhi._x += 1;
}
if (Number(i)%2 == 0) {
_root.bt.kongzhi.text = "start";
_root.bt.kongzhi._x -= 1;
clearInterval(taoyb);
}
}
Flash 动画:
回复Comments
作者:
{commentrecontent}