[]MovieClip的target和currentTarget属性为undefined?
private function showNowPic():void{AS3代码是这样的,但是COMPLETE事件触发后参数e为undefined。求问COMPLETE触发怎么的到触发事件的
for each(var ul:String in pics){
var mc:MovieClip = new MovieClip;
mc.load(ul);
this.addChild(mc);
mc.on(Event.COMPLETE,this,stopNowMC)
}
}
private function stopNowMC(e:Event):void{
trace(e.currentTarget);
trace(e.target);
MovieClip(e.currentTarget).gotoAndStop(MovieClip(e.target).count-1);
}
MovieClip
没有找到相关结果
已邀请:
要回复问题请先登录
2 个回复
cuixueying
赞同来自:
kasl123
赞同来自: