Question : Action Script3 Syntax Error

my error is
1086: Syntax error: expecting semicolon before leftbracket.

im calling a function with a mouse event that then triggers a for loop that is suppose to instantiate several new player objects (written in separate class)  but it messes up when i try to dyamicly create them using i,

ive tried changing i to a sting when i add it to the new var player name but it didn't help not sure what to do here.
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
function namePlayers(evnt:MouseEvent):void {
	trace("Continue has been clicked");
	var tempCount = Number(playerInput.text);
	//trace(Number(playerInput.text));
	
 
	for (var i:Number = 0;i
           
Open in New Window Select All

Answer : Action Script3 Syntax Error

I guess the answer is yes. And then the code is a posted.
Random Solutions  
 
programming4us programming4us