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:
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?