Binding to the rescue:
<mx:Text text="{ myMPHVariable } mph"/>
When you change the value of the variable, the display will be
automatically updated. Make sure that your variable is declared
bindable:
[Bindable] private var myMPHVariable : Number;
-TH
--- In [email protected], Jason Rayles <[EMAIL PROTECTED]> wrote:
>
> I have a text component on the stage that displays a string like "3
mph"
> and I want it to count up to "10 mph" over time when the data changes
> from 3 to 10. Is there a built-in effect or transition or behavior or
> something in Flex that will do that for me, or do I need to break out
> the ol' ActionScript?
>
> Thanks,
> Jason
>