//初始化引擎
Laya.init(600, 400);
Laya.stage.bgColor="#eeffcc";
var sp:Sprite=new Sprite();
sp.graphics.drawRect(0,0,200,200,"#FF0000");
Laya.stage.addChild(sp);
var timeLine:TimeLine=new TimeLine();
timeLine.on(Event.LABEL,this,onLabel);
timeLine.addLabel("A",0).to(sp,{rotation:360},700)
.addLabel("B",0).to(sp,{scaleY:0.7},200)
.addLabel("C",0).to(sp,{scaleY:1},200);
timeLine.play(0,false);
}
private function onLabel(text:String):void
{
trace(text);
}
应该是你的代码有问题,以上是我的测试例子,没有出现重复执行的问题,请测试。
注意,label事件的触发是在动画运行之后,一开始增加的label事件是无效的