FlxTween
can be used to change values over time following a number of available curve functions.
Using tween
allows you to pass any kind of object, and several parameters that you want to tween over.
// create a tween
FlxTween.tween(myObject, {parameter: destinationValue}, duration, {type: tweenType, easing: FlxEase: easeFunction});