# Font and color for dynamically loaded text

**URL:** <https://forum.kirupa.com/t/font-and-color-for-dynamically-loaded-text/7784>\
**Category:** Uncategorized\
**Created:** [November 7, 2002, 6:39pm UTC](https://forum.kirupa.com/t/font-and-color-for-dynamically-loaded-text/7784 "2002-11-07T18:39:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pithcell](https://avatars.discourse-cdn.com/v4/letter/p/3d9bf3/32.png) [@pithcell](https://forum.kirupa.com/u/pithcell)\
**Post date:** [November 7, 2002, 6:39pm UTC](https://forum.kirupa.com/t/font-and-color-for-dynamically-loaded-text/7784/1 "2002-11-07T18:39:08Z")

</div>

hey, i know this is a dumb basic question, BUT…how can i have different fonts size, colr and style in a dynamically loaded text box using flash MX???  
a hearty cheers to anyone that can help  
-pithcell

---

<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:** [November 8, 2002, 8:22am UTC](https://forum.kirupa.com/t/font-and-color-for-dynamically-loaded-text/7784/2 "2002-11-08T08:22:59Z")

</div>

Set it as HTML text and then use the usual HTML tags.

pom :cool:

---

<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:** [November 8, 2002, 11:13am UTC](https://forum.kirupa.com/t/font-and-color-for-dynamically-loaded-text/7784/3 "2002-11-08T11:13:24Z")

</div>

or use the TexFormat object, you could do something like this:

format1 = new TextFormat();  
format1.size = “16”;  
format1.color = “0xrrggbb”;  
texField1.setTextFormat(format1);

you can use many properties of the TextFormat, consult the actionscript dictionary for more details.

---

<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:** [November 11, 2002, 5:52pm UTC](https://forum.kirupa.com/t/font-and-color-for-dynamically-loaded-text/7784/4 "2002-11-11T17:52:09Z")

</div>

richie, and ilyaslamasse  
thanks for the answers!!  
came in handy and sloved the situationes  
much love  
the pcell
