# Loading external scrollable text file in MX2004

**URL:** https://forum.kirupa.com/t/loading-external-scrollable-text-file-in-mx2004/169626
**Category:** Uncategorized
**Created:** [November 17, 2005, 8:57pm UTC](https://forum.kirupa.com/t/loading-external-scrollable-text-file-in-mx2004/169626 "2005-11-17T20:57:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jta](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@jta](https://forum.kirupa.com/u/jta)
#### Post date: [November 17, 2005, 8:57pm UTC](https://forum.kirupa.com/t/loading-external-scrollable-text-file-in-mx2004/169626/1 "2005-11-17T20:57:39Z")

</div>

## I’ve been doing this tutorial ([http://www.kirupa.com/developer/mx/dynamic\_scroller.htm[url=“http://www.kirupa.com/developer/mx/dynamic\_scroller.htm)%20using”])](http://www.kirupa.com/developer/mx/dynamic_scroller.htm) using the same actionscript:

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

but I’m using Flash MX 2004 Pro and when I test my movie it gives me the error of

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

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

Basically i need to make a scrollable text box that load external txt file  
anyone can help pls?  
thx in advance
