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