28. アニメーションにカーブを付ける
・tweenerを利用してカーブを実現した。
・平行移動、拡大縮小、回転の3つに対応。
http://code.google.com/p/tweener/
/**
* Registers all the equations to the Tweener class, so they can be found by the direct string parameters.
* This method doesn't actually have to be used - equations can always be referenced by their full function
* names. But "registering" them make them available as their shorthand string names.
*/
public static function init():void {
Tweener.registerTransition("easenone", easeNone);
Tweener.registerTransition("linear", easeNone); // mx.transitions.easing.None.easeNone
Tweener.registerTransition("easeinquad", easeInQuad); // mx.transitions.easing.Regular.easeIn
Tweener.registerTransition("easeoutquad", easeOutQuad); // mx.transitions.easing.Regular.easeOut
Tweener.registerTransition("easeinoutquad", easeInOutQuad); // mx.transitions.easing.Regular.easeInOut
Tweener.registerTransition("easeoutinquad", easeOutInQuad);
Tweener.registerTransition("easeincubic", easeInCubic);
Tweener.registerTransition("easeoutcubic", easeOutCubic);
Tweener.registerTransition("easeinoutcubic", easeInOutCubic);