CLICK HERE TO COPY
Actionscript:
var box:MovieClip = new MovieClip();
box.graphics.beginFill(0xFF0000);
box.graphics.drawRect(-25,-25,50,50);
addChild(box);
stage.addEventListener(MouseEvent.CLICK, onStageDown);
function onStageDown(evt:MouseEvent):void{
moveTo(box, "x", 300, 2, Back.easeOut);
moveTo(box, "y", 200, 2, Back.easeOut);
moveTo(box, "scaleX", 2, 2, Back.easeOut);
moveTo(box, "rotation", 180, 2, Quartic.easeOut, onDone);
stage.removeEventListener(MouseEvent.CLICK, onStageDown);
}
function onDone():void {
moveTo(box, "x", 120, 2, [...]