Size: XS

My Blog

Quick AS3 Tweening and easing Reference guide

Thanks to http://www.zedia.net/actionscript-3-tweens-tutorial/

import fl.transitions.Tween;
import fl.transitions.easing.*;
var myTweenX:Tween = new Tween(rectangle, “x”, Strong.easeOut, 0, 300, 3, true);
var myTweenAlpha:Tween = new Tween(rectangle, “alpha”, Strong.easeOut, 0, 1, 3, true);
var myTweenWidth:Tween = new Tween(rectangle, “width”, Strong.easeOut, rectangle.width, rectangle.width + 300, 3, true);
var myTweenRotation:Tween = new Tween(rectangle, “rotation”, Strong.easeOut, 0, 90, 3, true);