This works:
Tweener.addTween( [ _fee, _fye, _fum ] , { alpna:1, time:10 });
But this does not:
var _myArray:Array = new Array( [ _fee, _fye, _fum ] );
Tweener.addTween( _myArray , { alpna:1, time:10 });
How can I pass the an array straight into the tweener?
you should call the constructor like this:
what you did, is construct an
Array, that contains anArrayofMovieClips …just as a side note: personally, i see no advantage of not using the literal, as in the first case … sometimes it is even better, because it is less ambigous … for example
new Array(5)will construct anArrayof length 5, whereasnew Array(myObject)will construct anArraycontainingmyObject…