MovieClip.getTweenFunction

From GiderosMobile
Revision as of 21:52, 30 September 2023 by MoKaLux (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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