Transitions

public class
loom2d.animation.Transitions

Description

The Transitions class contains static methods that define easing functions. Those functions are used by the Tween class to execute animations.

Here is a visual representation of the available transitions:

You can define your own transitions through the "registerTransition" function. A transition function must have the following signature, where ratio is in the range 0-1: function myTransition(ratio:Number):Number.

API overview

Constructor

Transitions ()
@private

Constants

Constants

EASE_IN: String static
EASE_IN_BACK: String static
EASE_IN_BOUNCE: String static
EASE_IN_ELASTIC: String static
EASE_IN_OUT: String static
EASE_IN_OUT_BACK: String static
EASE_IN_OUT_BOUNCE: String static
EASE_IN_OUT_ELASTIC: String static
EASE_OUT: String static
EASE_OUT_BACK: String static
EASE_OUT_BOUNCE: String static
EASE_OUT_ELASTIC: String static
EASE_OUT_IN: String static
EASE_OUT_IN_BACK: String static
EASE_OUT_IN_BOUNCE: String static
EASE_OUT_IN_ELASTIC: String static
LINEAR: String static

Functions

Public functions

getTransition ( name: String ): Function static

Returns the transition function that was registered under a certain name

register ( name: String , func: Function ): Void static

Registers a new transition function under a certain name

Protected functions

Constructor

Transitions ()

@private

Constants

EASE_IN: String

static

EASE_IN_BACK: String

static

EASE_IN_BOUNCE: String

static

EASE_IN_ELASTIC: String

static

EASE_IN_OUT: String

static

EASE_IN_OUT_BACK: String

static

EASE_IN_OUT_BOUNCE: String

static

EASE_IN_OUT_ELASTIC: String

static

EASE_OUT: String

static

EASE_OUT_BACK: String

static

EASE_OUT_BOUNCE: String

static

EASE_OUT_ELASTIC: String

static

EASE_OUT_IN: String

static

EASE_OUT_IN_BACK: String

static

EASE_OUT_IN_BOUNCE: String

static

EASE_OUT_IN_ELASTIC: String

static

LINEAR: String

static

Functions

getFullTypeName (): String
Inherited from Object

native

Gets the fully qualified type name of the Object. The fully qualified type name includes the package of the type.


Returns

String fully qualified type name of the Object.

getTransition ( name: String ): Function

static

Returns the transition function that was registered under a certain name.

Parameters

name: String


getType (): Type
Inherited from Object

native

Gets the Type that describes the Object.


Returns

Type The Type that describes the object.

getTypeName (): String
Inherited from Object

native

Gets the type name of the Object.


Returns

String type name of the Object.

register ( name: String , func: Function ): Void

static

Registers a new transition function under a certain name.

Parameters

name: String
func: Function


toString (): String
Inherited from Object

native

Returns a String that describes the Object. This can be overriden to provide extra details when printing objects using trace().


Returns

String String that described the Object.

Protected functions

: