August 4
Dynamic Tween using Standard AS 2.0 Tween Class
I haven’t been working with the Tween class, and thought I would revisit it and add a looping function to pre-populate an unlimited number of tweens using one tween function. Code is below and you can download the source code here.
import mx.transitions.Tween;
import mx.transitions.easing.*;
// Constants
_global.xPos = 20;
_global.tweenNum = 1;
_global.timeVar = 1;
_global.timeReduction = .15;
function tweenBall():Void {
var nextDepth:Number [...]