# TextFormat not formating my text... Why?

**URL:** <https://forum.kirupa.com/t/textformat-not-formating-my-text-why/257801>\
**Category:** flash\
**Created:** [April 17, 2008, 8:31am UTC](https://forum.kirupa.com/t/textformat-not-formating-my-text-why/257801 "2008-04-17T08:31:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brian914](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@brian914](https://forum.kirupa.com/u/brian914)\
**Post date:** [April 17, 2008, 8:31am UTC](https://forum.kirupa.com/t/textformat-not-formating-my-text-why/257801/1 "2008-04-17T08:31:53Z")

</div>

This is not styling my text. What am I doing wrong?

Thank you!!!

this.textScroll.createTextField(“my\_txt”, this.getNextHighestDepth(), 0, 0, 255, 200);  
textScroll.my\_txt.multiline = true;  
textScroll.my\_txt.html = true;  
textScroll.my\_txt.embedFonts = false;  
textScroll.my\_txt.wordWrap = true;  
textScroll.my\_txt.autoSize = “left”;  
textScroll.my\_txt.condenseWhite = true;

var tFormat\_tf:TextFormat = new TextFormat();  
tFormat\_tf.bold = true;  
tFormat\_tf.italic = true;  
textScroll.my\_txt.setTextFormat(tFormat\_tf);

var loadText\_lv:LoadVars = new LoadVars();  
var textDocPath:String = “…/txt/curriculum\_vitae.txt”;  
loadText\_lv.load(textDocPath);  
loadText\_lv.onLoad = function(success) {  
if (success) {  
// trace(success);  
textScroll.my\_txt.htmlText = this.myText;  
} else {  
textScroll.my\_txt.text = “Error connecting to server.”;  
}  
};
