MovieClip:setReverseAction

From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Available since: Gideros 2018.3
Class: MovieClip

Description

Sets a reverse action to the specified frame.

MovieClip:setReverseAction(frame)

When the movie clip reaches a frame with a reverse action, it changes its playing direction.

This function can be used to create back and forth animations, and even endless animations.

Parameters

frame: (int) the frame number