| Package | starling.animation |
| Class | public class Transitions |
| Inheritance | Transitions Object |
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
| Method | Defined By | ||
|---|---|---|---|
getTransition(name:String):Function [static] Returns the transition function that was registered under a certain name. | Transitions | ||
register(name:String, func:Function):void [static] Registers a new transition function under a certain name. | Transitions | ||
| Constant | Defined By | ||
|---|---|---|---|
| EASE_IN : String = easeIn [static] | Transitions | ||
| EASE_IN_BACK : String = easeInBack [static] | Transitions | ||
| EASE_IN_BOUNCE : String = easeInBounce [static] | Transitions | ||
| EASE_IN_ELASTIC : String = easeInElastic [static] | Transitions | ||
| EASE_IN_OUT : String = easeInOut [static] | Transitions | ||
| EASE_IN_OUT_BACK : String = easeInOutBack [static] | Transitions | ||
| EASE_IN_OUT_BOUNCE : String = easeInOutBounce [static] | Transitions | ||
| EASE_IN_OUT_ELASTIC : String = easeInOutElastic [static] | Transitions | ||
| EASE_OUT : String = easeOut [static] | Transitions | ||
| EASE_OUT_BACK : String = easeOutBack [static] | Transitions | ||
| EASE_OUT_BOUNCE : String = easeOutBounce [static] | Transitions | ||
| EASE_OUT_ELASTIC : String = easeOutElastic [static] | Transitions | ||
| EASE_OUT_IN : String = easeOutIn [static] | Transitions | ||
| EASE_OUT_IN_BACK : String = easeOutInBack [static] | Transitions | ||
| EASE_OUT_IN_BOUNCE : String = easeOutInBounce [static] | Transitions | ||
| EASE_OUT_IN_ELASTIC : String = easeOutInElastic [static] | Transitions | ||
| LINEAR : String = linear [static] | Transitions | ||
| getTransition | () | method |
public static function getTransition(name:String):FunctionReturns the transition function that was registered under a certain name.
Parameters
name:String |
Function |
| register | () | method |
public static function register(name:String, func:Function):voidRegisters a new transition function under a certain name.
Parameters
name:String | |
func:Function |
| EASE_IN | Constant |
public static const EASE_IN:String = easeIn| EASE_IN_BACK | Constant |
public static const EASE_IN_BACK:String = easeInBack| EASE_IN_BOUNCE | Constant |
public static const EASE_IN_BOUNCE:String = easeInBounce| EASE_IN_ELASTIC | Constant |
public static const EASE_IN_ELASTIC:String = easeInElastic| EASE_IN_OUT | Constant |
public static const EASE_IN_OUT:String = easeInOut| EASE_IN_OUT_BACK | Constant |
public static const EASE_IN_OUT_BACK:String = easeInOutBack| EASE_IN_OUT_BOUNCE | Constant |
public static const EASE_IN_OUT_BOUNCE:String = easeInOutBounce| EASE_IN_OUT_ELASTIC | Constant |
public static const EASE_IN_OUT_ELASTIC:String = easeInOutElastic| EASE_OUT | Constant |
public static const EASE_OUT:String = easeOut| EASE_OUT_BACK | Constant |
public static const EASE_OUT_BACK:String = easeOutBack| EASE_OUT_BOUNCE | Constant |
public static const EASE_OUT_BOUNCE:String = easeOutBounce| EASE_OUT_ELASTIC | Constant |
public static const EASE_OUT_ELASTIC:String = easeOutElastic| EASE_OUT_IN | Constant |
public static const EASE_OUT_IN:String = easeOutIn| EASE_OUT_IN_BACK | Constant |
public static const EASE_OUT_IN_BACK:String = easeOutInBack| EASE_OUT_IN_BOUNCE | Constant |
public static const EASE_OUT_IN_BOUNCE:String = easeOutInBounce| EASE_OUT_IN_ELASTIC | Constant |
public static const EASE_OUT_IN_ELASTIC:String = easeOutInElastic| LINEAR | Constant |
public static const LINEAR:String = linear