# Formatting text

**URL:** <https://forum.kirupa.com/t/formatting-text/66227>\
**Category:** Uncategorized\
**Created:** [October 4, 2004, 2:48am UTC](https://forum.kirupa.com/t/formatting-text/66227 "2004-10-04T02:48:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![geestring](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@geestring](https://forum.kirupa.com/u/geestring)\
**Post date:** [October 4, 2004, 2:48am UTC](https://forum.kirupa.com/t/formatting-text/66227/1 "2004-10-04T02:48:15Z")

</div>

the actionscript tut here explains how to format text in a field. But how do you format difference sentences within the same text field, is it possible?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 4, 2004, 7:35pm UTC](https://forum.kirupa.com/t/formatting-text/66227/2 "2004-10-04T19:35:48Z")

</div>

yes i was looking at that, but thats changing the properties for whatevers in the textfield. I want it so that theres an underlined title, then a paragraph with different size. how do i do that?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 4, 2004, 7:41pm UTC](https://forum.kirupa.com/t/formatting-text/66227/3 "2004-10-04T19:41:47Z")

</div>

Are you using a static or dynamic text field? Are you loading in text from external files? If so look through the code on this tutorial:

[http://www.kirupa.com/developer/mx/multiple\_dynamictext.htm](http://www.kirupa.com/developer/mx/multiple_dynamictext.htm)

Pay special attention to formatting the textbox to accept html code. Then you can use some basic html formatting in your txt file.

If you are using a static text box then I’m not sure how you can format individual bits of text differently in the same box.

hope this helps!  
:hr:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 4, 2004, 9:20pm UTC](https://forum.kirupa.com/t/formatting-text/66227/4 "2004-10-04T21:20:48Z")

</div>

im doing it like the tutorial mentioned above. Using the text object thing. Using dynamic text and inputing the text in the actionscript

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 4, 2004, 9:53pm UTC](https://forum.kirupa.com/t/formatting-text/66227/5 "2004-10-04T21:53:40Z")

</div>

Well, I may be wrong but I think you can only apply a style (or styles) as a whole to a text object. You can’t seperate out lines of text that are in the same text object and apply different styles to them.
