Error in scrolling dynamic text box

I am using Flash MX 2004 professional

I followed the tutorial for creating a dynamic text box with a scroll bar. I am getting this error when I test the movie and when I open the swf file I can see the box but the text isn’t loading.

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

I have built other pages that are exactly the same and seem to be working fine. I originally built the .fla on a windows machine with flash mx 2004 and then put it in flash mx 2004 pro on the mac. I’m not sure what the problem is.

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

Thats the actionscript on my actions layer.

Anyone that has any idea whats going on please let me know. Thanks.

~~Joanna~~

Instead of loadVars use LoadVars.

LoL tis amazing how one little letter can cause hours and hours of frustration. Thank you.

Welcome :slight_smile: