[]关于timeline结束的问题
直接上伪代码吧~~
var timeline = new TimeLine();为什么在结束的时候,会报下面的错误呢?
var list = [];
var count = 0;
for (var i = 0; i < array.numChildren; i++) {
var child = array.getChildAt(i);
if (child.name === 'lightDottedActive') {
child.visible = true;
child.alpha = 0;
timeline
.addLabel('lightDotted', 0)
.to(child, {
alpha: 1
}, 200, Ease.linearIn)
.to(child, {
alpha: 0
}, 200, Ease.linearIn)
}
}
timeline.play(0, true);
timeline.on(Event.COMPLETE, this, function () {
count++;
if (count === 2) {
timeline.destroy();
count = 0;
}
});
要回复问题请先登录
1 个回复
cuixueying
赞同来自: