Hello!
I’m using a sharedObject to save an array of names. I can save the names and trace them out fine, but now I want to put the list of names from the array in to seperate text boxes. In AS2 I would have done this:
for (var i:int = 0; i < Names.data.playerNames.length; i++){
var txtListName = "txtListName" + i;
txtListName.text = Names.data.playerNames*;
}
So the instance name of the text box is dynamically changed to txtListName0, txtListName1, txtListName2 etc, which corresponds to the already named boxes.
But this throughs the error: ’ Cannot create property text on String’
I’m stuck, can’t seem to figure out how to do it, and help would be greatly appreciated.