I am trying to dynamically tween some movieclips in my SWF but have problems with their dynamically created names. Here is the code
function slidePhoto(e:TimerEvent):void {
i = "i3";
movieClip = i as Object;
Tweener.addTween(movieClip,{x:0, y:0, transition:"easeInOutQuint", time:1, onComplete:waitMe, onCompleteParams:[4000, slideOutPhoto]});
}
Even if I declare
var i:String = "i";
var movieClip:Object;
and then
movieClip = i+3;
this doesn't work, but if I trace movieClip I get "i3" ??? Is this casting problem or am I somewhere very very wrong?