At 9/30/12 09:58 PM, jaksmillie wrote:
With all due respect, I'd like to learn how to do this in AS3, and not using something else like this tweenlite instrument.
Well, TweenLite is AS3. It's also the best possible tweening platform you can get (until they release an update :P) that even Adobe uses it.
But anyway, the general form for time-based stuff is
(final - initial) / time = rate
You know final and initial, you know time, solve for rate. An example with positions and velocity would be
rate = (400 - x) / 5; // I want it to move from x to 400 in five seconds
x += rate;
But seriously, use TweenLite.