# Array text into textfield and creating new line for each array element

**URL:** <https://forum.kirupa.com/t/array-text-into-textfield-and-creating-new-line-for-each-array-element/202727>\
**Category:** flash\
**Created:** [October 4, 2006, 9:16am UTC](https://forum.kirupa.com/t/array-text-into-textfield-and-creating-new-line-for-each-array-element/202727 "2006-10-04T09:16:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sparky1980](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sparky1980/32/2883_2.png) [@sparky1980](https://forum.kirupa.com/u/sparky1980)\
**Post date:** [October 4, 2006, 9:16am UTC](https://forum.kirupa.com/t/array-text-into-textfield-and-creating-new-line-for-each-array-element/202727/1 "2006-10-04T09:16:18Z")

</div>

I have an array called dropTarg1 which stores dropped-in items.

I want to loop through this array and in a textfield, display each array item on a new line of this text field

I think I need to use something like Array.join("/n") but I can’t get it working properly. I hope that the /n would create a new line of the text field called reviewBoxContentText.

for(var i:Number = 0; i\<dropTarg.length; i++){  
with(reviewBoxContent.reviewBoxContentText){  
autoSize = true;  
text = dropTarg1.join("/n");  
}  
}

All that is happening though is that the text field displays on a single line with /n in between each array element.
