# How do I add line breaks to text fields?

**URL:** https://forum.kirupa.com/t/how-do-i-add-line-breaks-to-text-fields/290201
**Category:** Uncategorized
**Created:** [June 11, 2009, 6:24am UTC](https://forum.kirupa.com/t/how-do-i-add-line-breaks-to-text-fields/290201 "2009-06-11T06:24:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Shaedo](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@Shaedo](https://forum.kirupa.com/u/Shaedo)
#### Post date: [June 11, 2009, 6:24am UTC](https://forum.kirupa.com/t/how-do-i-add-line-breaks-to-text-fields/290201/1 "2009-06-11T06:24:04Z")

</div>

I have a string (from xml) I want to display on stage. Currently I have a text field that I am simply assigning the text to (no problems) but I want to add line breaks at certain points.after reading this line:

“If the text includes a line break (for example, "  
" or “\r”), the bottom is also resized to fit the next line of text.”

found here:  
[http://help.adobe.com/en\_US/AS3LCR/Flash\_10.0/flash/text/TextField.html#autoSize](http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/text/TextField.html#autoSize)

I got the impression that I could add a string to text with a line break in it? If I try and add it to my xml file it simply writes it out as normal characters.

I am fairly sure I can do it by showing as HTML but was wondering if there was another way ?

Thanks for any help!
