Im creating a scoreboard within flash, ive got mysql data converted to xml and grabbed into flash, im trying to output the data: user, score, time into dynamic textboxs but can only get one record.
If you could help that would be great!
If there is a better way, such as creating the textfields on output could someone point me in the right direction!
function outputXML()
{
for (var i=0; i<xmldata.item.length(); i++)
myUser.text = xmldata.item[i].user;
myScore.text = xmldata.item[i].score;
myTime.text = xmldata.item[i].ctime;
}
}
How’s this look?
Instead of just setting the text to each new record’s user/score/time, I’m adding the new record’s values each time (and separating them by a newline
\n.