Difference between revisions of "MovieClip:setGotoAction"

From GiderosMobile
m
Line 3: Line 3:
 
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
 
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
 
'''<translate>Class</translate>:''' [[Special:MyLanguage/MovieClip|MovieClip]]<br/>
 
'''<translate>Class</translate>:''' [[Special:MyLanguage/MovieClip|MovieClip]]<br/>
 +
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
<translate><br />
+
<translate>
Sets a *goto* action to the specified frame. When the movie clip reaches a frame <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.
with goto action, it jumps to the destination frame and continues to play. <br />
+
</translate>
This function is usually used to create looping animations.<br />
 
<br /></translate>
 
 
<source lang="lua">
 
<source lang="lua">
MovieClip:setGotoAction(frame,destframe)
+
MovieClip:setGotoAction(frame,destframe)
 
</source>
 
</source>
 +
 
=== <translate>Parameters</translate> ===
 
=== <translate>Parameters</translate> ===
 
'''frame''': (int) <translate>the frame number</translate> <br/>
 
'''frame''': (int) <translate>the frame number</translate> <br/>

Revision as of 03:07, 26 April 2020


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