# Actionscript 3.0 List component setStyle

**URL:** <https://forum.kirupa.com/t/actionscript-3-0-list-component-setstyle/290594>\
**Category:** flash\
**Created:** [June 16, 2009, 10:13pm UTC](https://forum.kirupa.com/t/actionscript-3-0-list-component-setstyle/290594 "2009-06-16T22:13:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mel2669](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@mel2669](https://forum.kirupa.com/u/mel2669)\
**Post date:** [June 16, 2009, 10:13pm UTC](https://forum.kirupa.com/t/actionscript-3-0-list-component-setstyle/290594/1 "2009-06-16T22:13:32Z")

</div>

Thought I’d post this here. I had one heck of a time locating how to style the list component in as3. The setStyle(“textFormat”,myTextFormat) does not work. You have to use  
myList.setRendererStyle( “textFormat”, format);  
myList.setRendererStyle( “embedFonts”, true );

Hope this helps someone.
