Difference between revisions of "MovieClip:setGotoAction"
From GiderosMobile
Line 2: | Line 2: | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
=== Description === | === Description === | ||
− | <br /> | + | <translate><br /> |
Sets a *goto* action to the specified frame. When the movie clip reaches a frame <br /> | Sets a *goto* action to the specified frame. When the movie clip reaches a frame <br /> | ||
with goto action, it jumps to the destination frame and continues to play. <br /> | with goto action, it jumps to the destination frame and continues to play. <br /> | ||
This function is usually used to create looping animations.<br /> | This function is usually used to create looping animations.<br /> | ||
− | <br /> | + | <br /></translate> |
<source lang="lua"> | <source lang="lua"> | ||
MovieClip:setGotoAction(frame,destframe) | MovieClip:setGotoAction(frame,destframe) | ||
</source> | </source> | ||
=== Parameters === | === Parameters === | ||
− | '''frame''': (int) the frame number <br/> | + | '''frame''': (int) <translate>the frame number</translate> <br/> |
− | '''destframe''': (int) the destination frame number <br/> | + | '''destframe''': (int) <translate>the destination frame number</translate> <br/> |
Revision as of 13:33, 23 August 2018
Available since: 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.
MovieClip:setGotoAction(frame,destframe)
Parameters
frame: (int) the frame number
destframe: (int) the destination frame number