有没有办法点击Flash中的按钮(或动画片段)并以某种方式获取实例恰好在的当前帧标签?
my_button_instance.addEventListener(MouseEvent.CLICK, clickInstance, false, 0, true);
private function clickInstance(e:MouseEvent):void {
trace(trace-out-the-frame-label-here?);
}
答案 0 :(得分:0)
查看此网址可能有用:http://webdesigner-freelancer.com/en/entry/frame-labels-in-timeline-animation-using-as3/
更改
if(event.target.currentLabel == ”endframe”){...
到
trace(event.target.currentLabel)