Difference between revisions of "MovieClip:setStopAction"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Sets a *stop* action to the specified frame. When the movie clip reaches a frame <br /> with st...") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
(9 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 === | ||
− | + | Sets a stop action to the specified frame. | |
− | Sets a | + | <syntaxhighlight lang="lua"> |
− | with stop action, it stops playing. This function is usually used to divide | + | MovieClip:setStopAction(frame) |
− | the animation into independent parts. | + | </syntaxhighlight> |
− | + | ||
− | + | 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. | |
− | '''frame | + | |
+ | === Parameters === | ||
+ | '''frame''': (int) the frame number<br/> | ||
+ | |||
+ | {{MovieClip}} |
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