# Loading text from external sources

**URL:** <https://forum.kirupa.com/t/loading-text-from-external-sources/33170>\
**Category:** flash\
**Created:** [October 15, 2003, 11:20pm UTC](https://forum.kirupa.com/t/loading-text-from-external-sources/33170 "2003-10-15T23:20:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brock](https://avatars.discourse-cdn.com/v4/letter/b/a8b319/32.png) [@brock](https://forum.kirupa.com/u/brock)\
**Post date:** [October 15, 2003, 11:20pm UTC](https://forum.kirupa.com/t/loading-text-from-external-sources/33170/1 "2003-10-15T23:20:48Z")

</div>

Why am I getting this error:

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

Total ActionScript Errors: 1 Reported Errors: 1

My code looks like this:

loadText = new loadVars();  
loadText.load(“news.txt”);  
loadText.onLoad = function(success)  
{  
if (success)  
{  
newsBox.html = true;  
newsBox.htmlText = this.news;  
}  
};

---

<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:** [October 20, 2003, 3:53am UTC](https://forum.kirupa.com/t/loading-text-from-external-sources/33170/2 "2003-10-20T03:53:08Z")

</div>

Is it possible to load images from an external .TXT file?

---

<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:** [October 20, 2003, 4:22am UTC](https://forum.kirupa.com/t/loading-text-from-external-sources/33170/3 "2003-10-20T04:22:36Z")

</div>

you can load the “paths” to the images from a txt, and then load the images from the paths you got from the txt.
