# Need help loading .txt file

**URL:** <https://forum.kirupa.com/t/need-help-loading-txt-file/44813>\
**Category:** Uncategorized\
**Created:** [March 8, 2004, 4:44am UTC](https://forum.kirupa.com/t/need-help-loading-txt-file/44813 "2004-03-08T04:44:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vo\_M](https://avatars.discourse-cdn.com/v4/letter/v/77aa72/32.png) [@Vo\_M](https://forum.kirupa.com/u/Vo_M)\
**Post date:** [March 8, 2004, 4:44am UTC](https://forum.kirupa.com/t/need-help-loading-txt-file/44813/1 "2004-03-08T04:44:36Z")

</div>

loadText = new loadVars();  
loadText.load(“Dialy\_News.txt”);  
//creating the loadVarsText function  
loadText.onLoad = function() {  
DailyNews.text = this.DailyNews;  
};

and this is my error

**Warning** Scene=Scene 1, layer=Main Page, 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

im trying to have the .txt file text load into the dynamic text box  
any suggestions?
