flash event listener for movieclip end?

前端 未结 8 1142
执念已碎
执念已碎 2021-01-02 09:29

Could anyone advise the best way to trigger a functiont when a movieclip animation finishes? I figure an eventlistener could handle this, but not sure the best way to go abo

8条回答
  •  执笔经年
    2021-01-02 10:20

    if looking for shortest solution i think it would be :

            mc.addFrameScript(mc.totalFrames - 1, function():void 
            {
                trace("end of mc");
            });
    

提交回复
热议问题