MovieClip:setGotoAction: Difference between revisions
From GiderosMobile
mNo edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2011.6<br/> | |||
''' | '''Class:''' [[MovieClip]]<br/> | ||
''' | |||
=== | === Description === | ||
Sets a "go to" 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. | Sets a "go to" 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. | ||
<source lang="lua"> | <source lang="lua"> | ||
MovieClip:setGotoAction(frame,destframe) | MovieClip:setGotoAction(frame,destframe) | ||
</source> | </source> | ||
=== | === Parameters === | ||
'''frame''': (int) | '''frame''': (int) the frame number<br/> | ||
'''destframe''': (int) | '''destframe''': (int) the destination frame number<br/> | ||
{{MovieClip}} | {{MovieClip}} | ||
Revision as of 20:55, 24 April 2022
Available since: Gideros 2011.6
Class: MovieClip
Description
Sets a "go to" 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