Using Flash MX 2004 with ellipsis update. I have a flash movie for a song parody I wrote. There will be an audio file but I want the lyrics to be available for reading for those who want to read them. I thought the optimal solution would be a scrollable dynamic text field. I used the following tutorial:
http://www.macromedia.com/cfusion/kn...fm?id=tn_16142

I created a new layer in my existing movie with a keyframe on 160 as the vocals do not start for 13 seconds. I then created the multiline dynamic text field with the instance name of scroller, drug the scrollbar component onto the text field and added the following actioncript to a keyframe in a new layer directly above the text box:

loadVarsText = new loadVars();
loadVarsText.load("test.txt");
//assign a function which fires when the data is loaded:
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");
//Now that we know the data is loaded,
//set the text content of the Text Field
//with the instance name "scroller" equal to the
//contents of the variable
scroller.text = this.var1;
} else {
trace("not loaded");
}
};


My test.txt file is formatted thus:

var1=loser

In the time of chimpanzees
Bush was a monkey,etc

Flash output says:

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

When I test the movie I do see my scrollbar but no text.

Any and all suggestions appreciated.