if anyone has the book please flip to p.261, the exercise about tweens.
i tried doing it and i’m not sure if im rewritting it wrong, or if the book has a typo.
please help.
here’s the code:
import mx.transitions.Tween;
import mx.transitinos.easing.*;
var aClasses:Array = [Back, Bounce, Elastic, Regular, Strong];
var aEasingMethods:Array = new Array();
for (var i:Number = 0; i < aClasses.length; i++) {
aEasingMethods.push(aClasses*.easeIn);
aEasingMethods.push(aClasses*.easeOut);
aEasingMethods.push(aClasses*.easeInOut);
}
var mClip:MovieClip;
var nDepth:Number;
var nX:Number = 20;
var oClips:Object = new Object();
for (var i:Number = 0; i < aEasingMethods.length; i++) {
nDepth = this.getNextHighestDepth();
mClip = this.attachMovie("Circle", "mClip", + nDepth, {_x: nX, _y: 50});
nX += mClip._width + 5;
oClips[mClip._name] = aEasingMethods*;
mClip.onPress = function():Void {
var twMove:Tween = new Tween(this, "_y", oClips[this._name], 50, 350, 2,true);
};
}