# Component styles

**URL:** <https://forum.kirupa.com/t/component-styles/262017>\
**Category:** Uncategorized\
**Created:** [June 2, 2008, 5:27pm UTC](https://forum.kirupa.com/t/component-styles/262017 "2008-06-02T17:27:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![koolkrasher](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@koolkrasher](https://forum.kirupa.com/u/koolkrasher)\
**Post date:** [June 2, 2008, 5:27pm UTC](https://forum.kirupa.com/t/component-styles/262017/1 "2008-06-02T17:27:34Z")

</div>

Hello i have a little problem. I have 2 components on my stage one text are component and one list component. I have some styles on my actions layer but it wont apply to the list component but applies to the text area component. Is there anything i can add to the code below so my list component will have a white font instead of default black?

```auto

var newFormat:TextFormat = new TextFormat();
newFormat.font = "verdana";
newFormat.size = 14;
newFormat.leading = 1;
newFormat.color = 0xffffff;

//list component
lb.setStyle("textFormat",newFormat); 
//text area component
ta.setStyle("textFormat",newFormat); 

```

---

<div class="post-metadata">

**Author:** ![Felixz](https://avatars.discourse-cdn.com/v4/letter/f/ecb155/32.png) [@Felixz](https://forum.kirupa.com/u/Felixz)\
**Post date:** [June 3, 2008, 10:27am UTC](https://forum.kirupa.com/t/component-styles/262017/2 "2008-06-03T10:27:21Z")

</div>

> **[How can i change the font size of List compenent by the code?](https://www.kirupa.com/forum/showthread.php?t=293637)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!
