stopping on the last frame (flash)

前端 未结 4 1932
粉色の甜心
粉色の甜心 2020-12-18 04:57

I want my movieclip to play once and stop on the last frame. I use the following code in the loop of my movieclip class. (this is as3)

if(currentFrame == 120         


        
4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-18 05:25

    On the timeline, you can just put a keyframe at the end, and add the stop(); method there. When it reaches that frame, the stop(); method will execute, and the clip will stop.

    Assuming you are using the timeline that is, but sounds like you are.

提交回复
热议问题