# Load external .txt to Flash

**URL:** <https://forum.kirupa.com/t/load-external-txt-to-flash/155783>\
**Category:** flash\
**Created:** [July 20, 2005, 8:03am UTC](https://forum.kirupa.com/t/load-external-txt-to-flash/155783 "2005-07-20T08:03:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![silentcovenant](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@silentcovenant](https://forum.kirupa.com/u/silentcovenant)\
**Post date:** [July 20, 2005, 8:03am UTC](https://forum.kirupa.com/t/load-external-txt-to-flash/155783/1 "2005-07-20T08:03:43Z")

</div>

Hello, I was wondering how I can load an external .txt document into a designated dynamic text box in my flash document. I’ve tried the two tutorials I could find on [flashkit.com](http://flashkit.com) and neither of them worked for me. I did everything as told and still the text file didn’t load.

Could someone please help me out? Thanks! :pleased:

EDIT: I also used the two tutorials on this site as well…  
When I enter the actionscript into the editor, I’ll click check syntax and I get an error!

Here’s the code I have in the first frame of my actions layer:

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

Here’s what the error is:

> **Warning** Symbol=text, layer=actions, frame=1:Line 2: The identifier ‘loadVars’ will not resolve to built-in object ‘LoadVars’ at runtime.  
> loadText = new loadVars();

Total ActionScript Errors: 1 Reported Errors: 1

What do I do? Is this an MX2004 issue? I really need help guys… Thanks :look:
