views:

19

answers:

1

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?

A: 

you should call the constructor like this:

var _myArray:Array = new Array(_fee, _fye, _fum);

what you did, is construct an Array, that contains an Array of MovieClips ... 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 an Array of length 5, whereas new Array(myObject) will construct an Array containing myObject ...

greetz

back2dos

back2dos