text fields in array
i m trying to make a hangman style game.i have 33 dynamic text fields on my stage like this.
i have parsed all text fields row by row into 3 arrays.
i also parsed my 3 words into 3 arrays with split method so i can check later if the letter that the user picked exists.
in next frame when the game begins and the user picks a letter although i can check if the letter exist in my first word array i cant display it on current textfield on my stage.
i get the following error:ReferenceError: Error #1056: Cannot create property text on String.
i guess when i parsed the textfields in arrays they automatically got strings.And i cant do this for example:
firstwordarray is the array where i parsed my first word with split method.
letterchosentxt is the textfield where the user picks a letter.
firstarray is the array where i parsed the first row(11) of text fields.
for(var p:uint=0;p<firstwordarray.length;p++)
{
if(letterchosentxt.text==firstwordarray
)
{
firstarray
.text=letterchosentxt.text;
break;
}
}
thanks in advance.
