Solutionabc
asked on
AS3 loop dynamic var name
Hi,
why won't the below code work?
I keep getting this error:
syntax error: expecting semicolon before leftbracket.
Thanks.
why won't the below code work?
I keep getting this error:
syntax error: expecting semicolon before leftbracket.
Thanks.
for(var i:int=0; i < e.length; i++)
{
//trace(e[i].channel);
var test[i]:TextField = new TextField();
test[i].text = e[i].channel;
addChild(test[i]);
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.