i’ve got an array consisting of variable names (actually papervision primitives).
var homeObjs:Array = new Array(plane1, plane2, plane3);
very simple.
later i want to pass the array into a function to do the same thing (tween) to all primitives.
The primitives animate out to specific x and y coords., so i need to reference those and am attempting to make variables to pass to tween like this:
clipY = [threeDobjArray*.toString+"yOut"];
clipX = [threeDobjArray*.toString+"xOut"];
I’ve got these variables defined earlier:
var plane1yOut:Number = -600;
var plane1xOut:Number = -900;
var plane2yOut:Number = 600;
var plane2xOut:Number = 900;
var plane3yOut:Number = -600;
var plane3xOut:Number = 900;
ultimately want to pass them into this:
Tweener.addTween(clip, {rotationX:540, rotationY:360, z:300, y:clipY, x:clipX, alpha:0, transition:"easeInOutQuad", time:1.5});
i’m not creating my variable name properly and can’t figure out what i’m doing wrong! help!