# Loading a text file into a dyanmic textbox

**URL:** <https://forum.kirupa.com/t/loading-a-text-file-into-a-dyanmic-textbox/159015>\
**Category:** Uncategorized\
**Created:** [August 13, 2005, 9:02pm UTC](https://forum.kirupa.com/t/loading-a-text-file-into-a-dyanmic-textbox/159015 "2005-08-13T21:02:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlueMech](https://avatars.discourse-cdn.com/v4/letter/b/87869e/32.png) [@BlueMech](https://forum.kirupa.com/u/BlueMech)\
**Post date:** [August 13, 2005, 9:02pm UTC](https://forum.kirupa.com/t/loading-a-text-file-into-a-dyanmic-textbox/159015/1 "2005-08-13T21:02:30Z")

</div>

> **[kirupa.com - Scrolling Dynamically Loaded Text](https://www.kirupa.com/developer/mx/dynamic_scroller.htm)**
>
> Learn how to easily scroll dynamically loaded text in Flash MX.

I followed that tutorial, it didn’t work and I followed one on macromedias website. Both are giving me the same error. I’m using flash mx 2004 professional version 7.2

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

Total ActionScript Errors: 1 Reported Errors: 1

It shopws me that and in the text box there all it says is ‘undefined’

The code on the layer that contains the textbox:

> loadVarsText = new loadVars();  
> loadVarsText.load(“test.txt”);  
> scroller.text = loadVarsText.var1;

I’ve also tried w/o that last line of code. Also the sample file off the kirupa tutorial gives me the same error. What’s going on?
