https://github.com/Gamua/Starling-Framework/blob/master/starling/src/starling/animation/Juggler.as
this is AS3 origin of whole idea