Hey,
I'm trying to come up with a function that will decrease a number exponentially until it reaches a target number.

Basically, I'm trying to come up with something that I can use to do those nice actionscripted scales, and slides where the movement starts off fast, then slows quickly as the clip reaches it's target. Could be used for scaling, or sliding.

I'm thinking the structure of the function would go something like:

While: CurrentValue is less than TargetValue
1. Increase/Decrease CurrentValue by FactorX.
2. Set clip property to CurrentValue.
3. Increase/Decrease FactorX exponentially.

I think I have the right approach, but I can't seem to script it properly. Any help would be great. Thanks