# Dynamic Txt in MC

**URL:** https://forum.kirupa.com/t/dynamic-txt-in-mc/175355
**Category:** flash
**Created:** [January 13, 2006, 4:54pm UTC](https://forum.kirupa.com/t/dynamic-txt-in-mc/175355 "2006-01-13T16:54:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![HecticMedia](https://avatars.discourse-cdn.com/v4/letter/h/e99b99/32.png) [@HecticMedia](https://forum.kirupa.com/u/HecticMedia)
#### Post date: [January 13, 2006, 4:54pm UTC](https://forum.kirupa.com/t/dynamic-txt-in-mc/175355/1 "2006-01-13T16:54:16Z")

</div>

Hey all,

I’m using a movieclip scroller… I’m using a method from a tutorial on this site to bring in txt from a txt file into a dynamic txt box and apply css:

```auto
var format = new TextField.StyleSheet();
var path = "flash.css";
format.load(path);
format.onLoad = function(loaded) {
	if (loaded) {
		output.styleSheet = format;
myLoadVar = new LoadVars (); 
myLoadVar.load("spikestrip.txt") 
myLoadVar.onLoad = function (success){ 
if (success == true) { 
output.variable = "kirupa" 
output.htmlText=myLoadVar.kirupa; 
} 
}
	} else {
		output.text = "Error loading CSS file!";
	}
};

```

Now this works, but when it’s in a movie clip to be scrolled… nothing shows up…any ideas?

Thanks!
