Hello, friends
some code look like this:
var i = 1;
while(i < 6){
newX = new Number(i * 25);
newY = new Number(187);
newW = new Number(22);
newH = new Number(22);
_root.createClassObject(mx.controls.Button, "button"+i, i, {label:i, _x:newX, _y:newY, _width:newW, _height:newH});
i++;
}
"button"+i.enabled = false;
the last line is syntax error, is there any way can I set property to a dynamic variable like above?
or how can I concat a string and a variable as a new variable?
I’d very appriciated if any one can help me out, thanks in advance.
a newbe