Difference between revisions of "MovieClip:setStopAction"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Sets a stop action to the specified frame.
 
Sets a stop action to the specified frame.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
MovieClip:setStopAction(frame)
 
MovieClip:setStopAction(frame)
</source>
+
</syntaxhighlight>
  
 
When the movie clip reaches a frame with a stop action, it stops playing.
 
When the movie clip reaches a frame with a stop action, it stops playing.

Latest revision as of 14: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