# Array in texfield

**URL:** <https://forum.kirupa.com/t/array-in-texfield/290398>\
**Category:** flash\
**Created:** [June 14, 2009, 3:17am UTC](https://forum.kirupa.com/t/array-in-texfield/290398 "2009-06-14T03:17:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dilpreet](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@dilpreet](https://forum.kirupa.com/u/dilpreet)\
**Post date:** [June 14, 2009, 3:17am UTC](https://forum.kirupa.com/t/array-in-texfield/290398/1 "2009-06-14T03:17:12Z")

</div>

hey

i have a quiz and i want to add the final results in a text field. First i have an array which i push the score to. now i need to know how to put that array in to a text field. i have this code -  
[AS]  
for (var s:int = 0; s\<arrscore.length; s++)  
{  
score\_txt.text = (arrscore[s]);  
}[/AS]

but it just puts the latest score into the textfield. so if i get 3 it puts in 3 and if anyone does it again it puts their score in instead of mine. i want it to show all the different results in the texfield on an individual line
