Table of Contents

MovieClip:setGotoAction

Available since version: Gideros 2011.6

Description:

Sets a *goto* action to the specified frame. When the movie clip reaches a frame
with goto action, it jumps to the destination frame and continues to play.
This function is usually used to create looping animations.

Syntax:

MovieClip:setGotoAction(frame, destframe)

Parameters:

  • frame: (int) the frame number
  • destframe: (int) the destination frame number