Flash按钮:获取帧标签?

时间:2012-02-09 12:22:38

标签: flash animation actionscript

有没有办法点击Flash中的按钮(或动画片段)并以某种方式获取实例恰好在的当前帧标签?

my_button_instance.addEventListener(MouseEvent.CLICK, clickInstance, false, 0, true);

private function clickInstance(e:MouseEvent):void {
   trace(trace-out-the-frame-label-here?);
}

1 个答案:

答案 0 :(得分:0)

查看此网址可能有用:http://webdesigner-freelancer.com/en/entry/frame-labels-in-timeline-animation-using-as3/

更改

if(event.target.currentLabel == ”endframe”){...

trace(event.target.currentLabel)