stopping on the last frame (flash)

前端 未结 4 1933
粉色の甜心
粉色の甜心 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

    Easiest way:

    1. Just select the last Frame in the timeline. Open the Actions pane(F8). Ensure the frame u selected is still selected, if not then select again while the Actions pane is open.
    2. After selecting, just add the simple stop() function in the the 'Action-Frame' pane.

      //add the following line to the actions pane of the last frame.
      stop();
      
    3. You're done. You can optionally add a replay button if needed.

提交回复
热议问题