Difference between revisions of "MovieClip:setGotoAction"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Sets a *goto* action to the specified frame. When the movie clip reaches a frame <br /> with go...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 +
'''Class:''' [[MovieClip]]<br/>
 +
 
=== Description ===
 
=== Description ===
<br />
+
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 *goto* action to the specified frame. When the movie clip reaches a frame <br />
+
<syntaxhighlight lang="lua">
with goto action, it jumps to the destination frame and continues to play. <br />
+
MovieClip:setGotoAction(frame,destframe)
This function is usually used to create looping animations.<br />
+
</syntaxhighlight>
<br />
+
 
<source lang="lua">
+
=== Parameters ===
= MovieClip:setGotoAction(framedestframe,)
+
'''frame''': (int) the frame number<br/>
</source>
+
'''destframe''': (int) the destination frame number<br/>
'''frame:''' (int) the frame number ''''''<br/>
+
 
'''destframe:''' (int) the destination frame number ''''''<br/>
+
{{MovieClip}}

Latest revision as of 14:30, 13 July 2023

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