# Loading .txt files into movie clips

**URL:** <https://forum.kirupa.com/t/loading-txt-files-into-movie-clips/11039>\
**Category:** flash\
**Created:** [January 11, 2003, 12:22am UTC](https://forum.kirupa.com/t/loading-txt-files-into-movie-clips/11039 "2003-01-11T00:22:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zcarrington1](https://avatars.discourse-cdn.com/v4/letter/z/3ec8ea/32.png) [@zcarrington1](https://forum.kirupa.com/u/zcarrington1)\
**Post date:** [January 11, 2003, 12:22am UTC](https://forum.kirupa.com/t/loading-txt-files-into-movie-clips/11039/1 "2003-01-11T00:22:08Z")

</div>

Can any one hook me up with some code will load a .txt file into a movie clip? I need it to be an on frame event but I can’t figure it out.

Also, how do you change the font and color of the text that is loaded from the .txt file?

Thanks…:beam:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 11, 2003, 12:38am UTC](https://forum.kirupa.com/t/loading-txt-files-into-movie-clips/11039/2 "2003-01-11T00:38:55Z")

</div>

loadText = new loadVars();  
loadText.load(“news1.txt”);  
// creating the loadVarsText function  
loadText.onLoad = function() {  
scroller.text = this.news1;  
};  
stop();

if u add that to a dynamic text box it should add text but its for a scroller shud be able to adapt it though

-Tom
