MovieClip:setStopAction: Difference between revisions

From GiderosMobile
No edit summary
m Text replacement - "</source>" to "</syntaxhighlight>"
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/MovieClip|MovieClip]]<br/>
'''Class:''' [[MovieClip]]<br/>
=== <translate>Description</translate> ===
 
<translate><br />
=== Description ===
Sets a *stop* action to the specified frame. When the movie clip reaches a frame <br />
Sets a stop action to the specified frame.
with stop action, it stops playing. This function is usually used to divide<br />
<syntaxhighlight lang="lua">
the animation into independent parts.<br />
MovieClip:setStopAction(frame)
<br /></translate>
</syntaxhighlight>
<source lang="lua">
 
MovieClip:setStopAction(frame)
When the movie clip reaches a frame with a stop action, it stops playing.
</source>
 
=== <translate>Parameters</translate> ===
This function is usually used to divide the animation into independent parts.
'''frame''': (int) <translate>the frame number</translate> <br/>
 
=== Parameters ===
'''frame''': (int) the frame number<br/>
 
{{MovieClip}}

Latest revision as of 13:31, 13 July 2023

Available since: Gideros 2011.6
Class: MovieClip

Description

Sets a stop action to the specified frame.

MovieClip:setStopAction(frame)

When the movie clip reaches a frame with a stop action, it stops playing.

This function is usually used to divide the animation into independent parts.

Parameters

frame: (int) the frame number