AS Tween doesn’t like concatenated names
Came across this problem in AS2… dunno if it is the same in AS3 with tweening class…
..the object im trying to tween here is called ‘box”.
=====================
import mx.transitions.Tween;
import mx.transitions.easing.*;
var myHolder:String = “bo”;
var ap:String = “x”;
var finalVal:String = myHolder+ap;
trace(finalVal);
new Tween(finalVal, “_alpha”, Regular.easeIn, 100, 0, 1, true);
========
This code doesn’t work. Tween isn’t accepting a concatenated var… i tried it inline too, no such luck.. seems like a stupid problem. lol.