# LoadVariables and TextFormat

**URL:** <https://forum.kirupa.com/t/loadvariables-and-textformat/73815>\
**Category:** flash\
**Created:** [December 20, 2004, 8:12pm UTC](https://forum.kirupa.com/t/loadvariables-and-textformat/73815 "2004-12-20T20:12:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tyler](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@Tyler](https://forum.kirupa.com/u/Tyler)\
**Post date:** [December 20, 2004, 8:12pm UTC](https://forum.kirupa.com/t/loadvariables-and-textformat/73815/1 "2004-12-20T20:12:32Z")

</div>

Hey everybody,

I am loading a text into a dynamic textField and am assigning a textFormat to the variable.  
The text is only changing the font but not the size and the color of the font! does anybody knows why?

Here is the code:

\_root.createTextField(“News”,10,100,100,300,50);  
News.variable=“NewsField”;

NewsTextFormat = new TextFormat();  
NewsTextFormat.font=“Arial”;  
NewsTextFormat.size=10;  
NewsTextFormat.color=0x666666;  
News.setNewTextFormat(NewsTextFormat);

News.html=true;  
News.selectable=false;  
News.autoSize=“left”;  
News.multiline=true;  
News.wordWrap=true;

loadVariables(“NewsField.txt”,"\_root");
