# Array meets dynamic text field

**URL:** <https://forum.kirupa.com/t/array-meets-dynamic-text-field/243038>\
**Category:** flash\
**Created:** [November 2, 2007, 3:26am UTC](https://forum.kirupa.com/t/array-meets-dynamic-text-field/243038 "2007-11-02T03:26:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lou](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@Lou](https://forum.kirupa.com/u/Lou)\
**Post date:** [November 2, 2007, 3:26am UTC](https://forum.kirupa.com/t/array-meets-dynamic-text-field/243038/1 "2007-11-02T03:26:11Z")

</div>

So an array walks into a dynamic text field and says… oh wait…

I have an array that I am trying to output into a dynamic text field via this function:

```auto

Barcelona = ["Barcelona:", "Apple", "25 - ", "2"];

Output_Array = function(array_name)
{
    for(i=0; i<array_name.length; i++)
    {
        output_txt.text += array_name*
        output_txt.text += " "
    }
}

```

It outputs the array just fine, but what I want to do is add in a line break here and there to make it more beautiful. In the dynamic text field properties there is an option for “Render text as HTML”. With the option checked I tried adding in \<br\> and/or \<p\> HTML tags but all it does is prints out the “\<br\>” instead of making a new line. (I also have the text field set to Multiline.)

Is there anyway to get it to have a line break?
