Difference between revisions of "MovieClip:setStopAction"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Class:''' [[MovieClip]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/MovieClip|MovieClip]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate><br />
+
Sets a stop action to the specified frame.
Sets a *stop* action to the specified frame. When the movie clip reaches a frame <br />
 
with stop action, it stops playing. This function is usually used to divide<br />
 
the animation into independent parts.<br />
 
<br /></translate>
 
 
<source lang="lua">
 
<source lang="lua">
MovieClip:setStopAction(frame)
+
MovieClip:setStopAction(frame)
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
+
 
'''frame''': (int) <translate>the frame number</translate> <br/>
+
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<br/>
  
 
{{MovieClip}}
 
{{MovieClip}}

Revision as of 21:58, 24 April 2022

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