# Formatting Dynamically loaded text

**URL:** <https://forum.kirupa.com/t/formatting-dynamically-loaded-text/46167>\
**Category:** flash\
**Created:** [March 22, 2004, 4:16am UTC](https://forum.kirupa.com/t/formatting-dynamically-loaded-text/46167 "2004-03-22T04:16:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cki](https://avatars.discourse-cdn.com/v4/letter/c/85f322/32.png) [@cki](https://forum.kirupa.com/u/cki)\
**Post date:** [March 22, 2004, 4:16am UTC](https://forum.kirupa.com/t/formatting-dynamically-loaded-text/46167/1 "2004-03-22T04:16:07Z")

</div>

Hi,

After completing the dynamic text loading tutorial, I’m attempting to format the text after it’s loaded with the following.

var loadText = new LoadVars();  
loadText.load(“data.txt”);  
loadText.onLoad = function() {  
name\_txt.text = this.name;  
email\_txt.text = this.email;  
location\_txt.text = this.location;  
};  
var formatObj = new TextFormat();  
formatObj.size = 10;  
formatObj.font = “\_serif”;  
formatObj.bold = true;  
name\_txt.setTextFormat(formatObj);

The text is loaded, but no formatting. What am I missing?
