Transitions

The ‘Transitions’ class contains time-based easing equations.  <p> A special thanks goes out to Robert Penner who came up with most of these equations and basically paved the way for modern scripted animation in Flash.

Summary
TransitionsThe ‘Transitions’ class contains time-based easing equations.
Constants
LINEARReference to the linear easing equation.
SINE_INReference to the sine in easing equation.
SINE_OUTReference to the sine out easing equation.
SINE_IN_AND_OUTReference to the sine in and out easing equation.
QUAD_INReference to the quad in easing equation.
QUAD_OUTReference to the quad out easing equation.
QUAD_IN_AND_OUTReference to the quad in and out easing equation.
CUBIC_INReference to the cubic in easing equation.
CUBIC_OUTReference to the cubic out easing equation.
CUBIC_IN_AND_OUTReference to the cubic in and out easing equation.
QUART_INReference to the quart in easing equation.
QUART_OUTReference to the quart out easing equation.
QUART_IN_AND_OUTReference to the quart in and out easing equation.
QUINT_INReference to the quint in easing equation.
QUINT_OUTReference to the quint out easing equation.
QUINT_IN_AND_OUTReference to the quint in and out easing equation.
EXPO_INReference to the expo in easing equation.
EXPO_OUTReference to the expo out easing equation.
EXPO_IN_AND_OUTReference to the expo in and out easing equation.
BACK_INReference to the back in easing equation.
BACK_OUTReference to the back out easing equation.
BACK_IN_AND_OUTReference to the back in and out easing equation.
BOUNCEReference to the bounce easing equation.
ELASTIC_INReference to the elastic in easing equation.
ELASTIC_OUTReference to the elastic out easing equation.
ELASTIC_IN_AND_OUTReference to the elastic in and out easing equation.
DEFAULT_TRANSITIONConfiguration for the default transition.
BACK_OVERSHOOTConfigures the amount of overshoot to use for ‘back’ transitions.
ELASTIC_AMPLITUDEConfigures the amplitude of an elastic wave.
ELASTIC_PERIODConfigures the period of an elastic wave.
Functions
TransitionsConstructor.
linearLinear easing equation.
sineInSine in easing equation.
sineOutSine out easing equation.
sineInAndOutSine in and out easing equation.
quadInQuad in easing equation.
quadOutQuad out easing equation.
quadInAndOutQuad in and out easing equation.
cubicInCubic in easing equation.
cubicOutCubic out easing equation.
cubicInAndOutCubic in and out easing equation.
quartInQuart in easing equation.
quartOutQuart out easing equation.
quartInAndOutQuart in and out easing equation.
quintInQuint in easing equation.
quintOutQuint out easing equation.
quintInAndOutQuint in and out easing equation.
expoInExpo in easing equation.
expoOutExpo out easing equation.
expoInAndOutExpo in and out easing equation.
backInBack in easing equation.
backOutBack out easing equation.
backInAndOutBack in and out easing equation.
bounceBounce easing equation.
elasticInElastic in easing equation.
elasticOutElastic out easing equation.
elasticInAndOutElastic in and out easing equation.

Constants

LINEAR

public static const LINEAR: String

Reference to the linear easing equation.

See Also

linear

SINE_IN

public static const SINE_IN: String

Reference to the sine in easing equation.

See Also

sineIn

SINE_OUT

public static const SINE_OUT: String

Reference to the sine out easing equation.

See Also

sineOut

SINE_IN_AND_OUT

public static const SINE_IN_AND_OUT: String

Reference to the sine in and out easing equation.

See Also

sineInAndOut

QUAD_IN

public static const QUAD_IN: String

Reference to the quad in easing equation.

See Also

quadIn

QUAD_OUT

public static const QUAD_OUT: String

Reference to the quad out easing equation.

See Also

quadOut

QUAD_IN_AND_OUT

public static const QUAD_IN_AND_OUT: String

Reference to the quad in and out easing equation.

See Also

quadInAndOut

CUBIC_IN

public static const CUBIC_IN: String

Reference to the cubic in easing equation.

See Also

cubicIn

CUBIC_OUT

public static const CUBIC_OUT: String

Reference to the cubic out easing equation.

See Also

cubicOut

CUBIC_IN_AND_OUT

public static const CUBIC_IN_AND_OUT: String

Reference to the cubic in and out easing equation.

See Also

cubicInAndOut

QUART_IN

public static const QUART_IN: String

Reference to the quart in easing equation.

See Also

quartIn

QUART_OUT

public static const QUART_OUT: String

Reference to the quart out easing equation.

See Also

quartOut

QUART_IN_AND_OUT

public static const QUART_IN_AND_OUT: String

Reference to the quart in and out easing equation.

See Also

quartInAndOut

QUINT_IN

public static const QUINT_IN: String

Reference to the quint in easing equation.

See Also

quintIn

QUINT_OUT

public static const QUINT_OUT: String

Reference to the quint out easing equation.

See Also

quintOut

QUINT_IN_AND_OUT

public static const QUINT_IN_AND_OUT: String

Reference to the quint in and out easing equation.

See Also

quintInAndOut

EXPO_IN

public static const EXPO_IN: String

Reference to the expo in easing equation.

See Also

expoIn

EXPO_OUT

public static const EXPO_OUT: String

Reference to the expo out easing equation.

See Also

expoOut

EXPO_IN_AND_OUT

public static const EXPO_IN_AND_OUT: String

Reference to the expo in and out easing equation.

See Also

expoInAndOut

BACK_IN

public static const BACK_IN: String

Reference to the back in easing equation.

See Also

backIn

BACK_OUT

public static const BACK_OUT: String

Reference to the back out easing equation.

See Also

backOut

BACK_IN_AND_OUT

public static const BACK_IN_AND_OUT: String

Reference to the back in and out easing equation.

See Also

backInAndOut

BOUNCE

public static const BOUNCE: String

Reference to the bounce easing equation.

See Also

bounce

ELASTIC_IN

public static const ELASTIC_IN: String

Reference to the elastic in easing equation.

See Also

elasticIn

ELASTIC_OUT

public static const ELASTIC_OUT: String

Reference to the elastic out easing equation.

See Also

elasticOut

ELASTIC_IN_AND_OUT

public static const ELASTIC_IN_AND_OUT: String

Reference to the elastic in and out easing equation.

See Also

elasticInAndOut

DEFAULT_TRANSITION

public static const DEFAULT_TRANSITION: String

Configuration for the default transition.

BACK_OVERSHOOT

private static const BACK_OVERSHOOT: Number

Configures the amount of overshoot to use for ‘back’ transitions.

See Also

backIn, backOut, backInAndOut

ELASTIC_AMPLITUDE

private static const ELASTIC_AMPLITUDE: Number

Configures the amplitude of an elastic wave.

See Also

elasticIn, elasticOut, elasticInAndOut

ELASTIC_PERIOD

private static const ELASTIC_PERIOD: Number

Configures the period of an elastic wave.

See Also

elasticIn, elasticOut, elasticInAndOut

Functions

Transitions

public final function Transitions()

Constructor.

linear

public static function linear(t: Number,
b: Number,
c: Number,
d: Number):Number

Linear easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

sineIn

public static function sineIn(t: Number,
b: Number,
c: Number,
d: Number):Number

Sine in easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

sineOut

public static function sineOut(t: Number,
b: Number,
c: Number,
d: Number):Number

Sine out easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

sineInAndOut

public static function sineInAndOut(t: Number,
b: Number,
c: Number,
d: Number):Number

Sine in and out easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

quadIn

public static function quadIn(t: Number,
b: Number,
c: Number,
d: Number):Number

Quad in easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

quadOut

public static function quadOut(t: Number,
b: Number,
c: Number,
d: Number):Number

Quad out easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

quadInAndOut

public static function quadInAndOut(t: Number,
b: Number,
c: Number,
d: Number):Number

Quad in and out easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

cubicIn

public static function cubicIn(t: Number,
b: Number,
c: Number,
d: Number):Number

Cubic in easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

cubicOut

public static function cubicOut(t: Number,
b: Number,
c: Number,
d: Number):Number

Cubic out easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

cubicInAndOut

public static function cubicInAndOut(t: Number,
b: Number,
c: Number,
d: Number):Number

Cubic in and out easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

quartIn

public static function quartIn(t: Number,
b: Number,
c: Number,
d: Number):Number

Quart in easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

quartOut

public static function quartOut(t: Number,
b: Number,
c: Number,
d: Number):Number

Quart out easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

quartInAndOut

public static function quartInAndOut(t: Number,
b: Number,
c: Number,
d: Number):Number

Quart in and out easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

quintIn

public static function quintIn(t: Number,
b: Number,
c: Number,
d: Number):Number

Quint in easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

quintOut

public static function quintOut(t: Number,
b: Number,
c: Number,
d: Number):Number

Quint out easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

quintInAndOut

public static function quintInAndOut(t: Number,
b: Number,
c: Number,
d: Number):Number

Quint in and out easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

expoIn

public static function expoIn(t: Number,
b: Number,
c: Number,
d: Number):Number

Expo in easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

expoOut

public static function expoOut(t: Number,
b: Number,
c: Number,
d: Number):Number

Expo out easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

expoInAndOut

public static function expoInAndOut(t: Number,
b: Number,
c: Number,
d: Number):Number

Expo in and out easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

backIn

public static function backIn(t: Number,
b: Number,
c: Number,
d: Number):Number

Back in easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

backOut

public static function backOut(t: Number,
b: Number,
c: Number,
d: Number):Number

Back out easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

backInAndOut

public static function backInAndOut (t: Number,
b: Number,
c: Number,
d: Number):Number

Back in and out easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

bounce

public static function bounce(t: Number,
b: Number,
c: Number,
d: Number):Number

Bounce easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

elasticIn

public static function elasticIn(t: Number,
b: Number,
c: Number,
d: Number):Number

Elastic in easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

elasticOut

public static function elasticOut(t: Number,
b: Number,
c: Number,
d: Number):Number

Elastic out easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

elasticInAndOut

public static function elasticInAndOut(t: Number,
b: Number,
c: Number,
d: Number):Number

Elastic in and out easing equation.

Parameters

param t TIME: Current time during the tween.  0 to duration.
param b BEGINING: Starting value of the property being tweened.
param c CHANGE: Change in the properties value from start to target.
param d DURATION: Duration of the tween. 

Returns

The resulting tweened value. 

public static const LINEAR: String
Reference to the linear easing equation.
public static const SINE_IN: String
Reference to the sine in easing equation.
public static const SINE_OUT: String
Reference to the sine out easing equation.
public static const SINE_IN_AND_OUT: String
Reference to the sine in and out easing equation.
public static const QUAD_IN: String
Reference to the quad in easing equation.
public static const QUAD_OUT: String
Reference to the quad out easing equation.
public static const QUAD_IN_AND_OUT: String
Reference to the quad in and out easing equation.
public static const CUBIC_IN: String
Reference to the cubic in easing equation.
public static const CUBIC_OUT: String
Reference to the cubic out easing equation.
public static const CUBIC_IN_AND_OUT: String
Reference to the cubic in and out easing equation.
public static const QUART_IN: String
Reference to the quart in easing equation.
public static const QUART_OUT: String
Reference to the quart out easing equation.
public static const QUART_IN_AND_OUT: String
Reference to the quart in and out easing equation.
public static const QUINT_IN: String
Reference to the quint in easing equation.
public static const QUINT_OUT: String
Reference to the quint out easing equation.
public static const QUINT_IN_AND_OUT: String
Reference to the quint in and out easing equation.
public static const EXPO_IN: String
Reference to the expo in easing equation.
public static const EXPO_OUT: String
Reference to the expo out easing equation.
public static const EXPO_IN_AND_OUT: String
Reference to the expo in and out easing equation.
public static const BACK_IN: String
Reference to the back in easing equation.
public static const BACK_OUT: String
Reference to the back out easing equation.
public static const BACK_IN_AND_OUT: String
Reference to the back in and out easing equation.
public static const BOUNCE: String
Reference to the bounce easing equation.
public static const ELASTIC_IN: String
Reference to the elastic in easing equation.
public static const ELASTIC_OUT: String
Reference to the elastic out easing equation.
public static const ELASTIC_IN_AND_OUT: String
Reference to the elastic in and out easing equation.
public static const DEFAULT_TRANSITION: String
Configuration for the default transition.
private static const BACK_OVERSHOOT: Number
Configures the amount of overshoot to use for ‘back’ transitions.
private static const ELASTIC_AMPLITUDE: Number
Configures the amplitude of an elastic wave.
private static const ELASTIC_PERIOD: Number
Configures the period of an elastic wave.
public final function Transitions()
Constructor.
public static function linear(t: Number,
b: Number,
c: Number,
d: Number):Number
Linear easing equation.
public static function sineIn(t: Number,
b: Number,
c: Number,
d: Number):Number
Sine in easing equation.
public static function sineOut(t: Number,
b: Number,
c: Number,
d: Number):Number
Sine out easing equation.
public static function sineInAndOut(t: Number,
b: Number,
c: Number,
d: Number):Number
Sine in and out easing equation.
public static function quadIn(t: Number,
b: Number,
c: Number,
d: Number):Number
Quad in easing equation.
public static function quadOut(t: Number,
b: Number,
c: Number,
d: Number):Number
Quad out easing equation.
public static function quadInAndOut(t: Number,
b: Number,
c: Number,
d: Number):Number
Quad in and out easing equation.
public static function cubicIn(t: Number,
b: Number,
c: Number,
d: Number):Number
Cubic in easing equation.
public static function cubicOut(t: Number,
b: Number,
c: Number,
d: Number):Number
Cubic out easing equation.
public static function cubicInAndOut(t: Number,
b: Number,
c: Number,
d: Number):Number
Cubic in and out easing equation.
public static function quartIn(t: Number,
b: Number,
c: Number,
d: Number):Number
Quart in easing equation.
public static function quartOut(t: Number,
b: Number,
c: Number,
d: Number):Number
Quart out easing equation.
public static function quartInAndOut(t: Number,
b: Number,
c: Number,
d: Number):Number
Quart in and out easing equation.
public static function quintIn(t: Number,
b: Number,
c: Number,
d: Number):Number
Quint in easing equation.
public static function quintOut(t: Number,
b: Number,
c: Number,
d: Number):Number
Quint out easing equation.
public static function quintInAndOut(t: Number,
b: Number,
c: Number,
d: Number):Number
Quint in and out easing equation.
public static function expoIn(t: Number,
b: Number,
c: Number,
d: Number):Number
Expo in easing equation.
public static function expoOut(t: Number,
b: Number,
c: Number,
d: Number):Number
Expo out easing equation.
public static function expoInAndOut(t: Number,
b: Number,
c: Number,
d: Number):Number
Expo in and out easing equation.
public static function backIn(t: Number,
b: Number,
c: Number,
d: Number):Number
Back in easing equation.
public static function backOut(t: Number,
b: Number,
c: Number,
d: Number):Number
Back out easing equation.
public static function backInAndOut (t: Number,
b: Number,
c: Number,
d: Number):Number
Back in and out easing equation.
public static function bounce(t: Number,
b: Number,
c: Number,
d: Number):Number
Bounce easing equation.
public static function elasticIn(t: Number,
b: Number,
c: Number,
d: Number):Number
Elastic in easing equation.
public static function elasticOut(t: Number,
b: Number,
c: Number,
d: Number):Number
Elastic out easing equation.
public static function elasticInAndOut(t: Number,
b: Number,
c: Number,
d: Number):Number
Elastic in and out easing equation.
Close