# Loading text from external sources

**URL:** <https://forum.kirupa.com/t/loading-text-from-external-sources/92338>\
**Category:** Uncategorized\
**Created:** [October 15, 2003, 11:20pm UTC](https://forum.kirupa.com/t/loading-text-from-external-sources/92338 "2003-10-15T23:20:48Z")\
**Posts on this page:** 1\
**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/92338/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;  
}  
};
