MovieClip.getTweenFunction

From GiderosMobile

Available since: Gideros 2023.9
Class: MovieClip

Description

Retrieves a native tween/easing function by its name.

(function) = MovieClip.getTweenFunction(name)

Parameters

name: (string) the name of the requested tween function

Return values

Returns (function) the specified tween function, or linear tween function if name wasn't recognized

Example

print(MovieClip.getTweenFunction("linear")) --> function: 0x0000029ff8243530
print(MovieClip.getTweenFunction("inBounce")) --> function: 0x0000029ff82434e0
print(MovieClip.getTweenFunction("outBounce")) --> function: 0x0000029ff8243490