Tweening Dates in Flex 2

Submitted by Falken on
Here is a Flex 2 effect that will let you apply a tween effect to a Date-based control, such as, ohhh, a DateTimeAxis on a chart.

You use it the same way as the AnimateProperty TweenEffect:

var ani:*=new AnimateDateTimeProperty(aChart.horizontalAxis);//have to use * to avoid type conflict on toValue
ani.property="minimum";
ani.toValue=new Date( minDateVal+minDate );
ani.play();
Sections