Load external .txt to Flash

Hello, I was wondering how I can load an external .txt document into a designated dynamic text box in my flash document. I’ve tried the two tutorials I could find on flashkit.com and neither of them worked for me. I did everything as told and still the text file didn’t load.

Could someone please help me out? Thanks! :pleased:

EDIT: I also used the two tutorials on this site as well…
When I enter the actionscript into the editor, I’ll click check syntax and I get an error!

Here’s the code I have in the first frame of my actions layer:

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

Here’s what the error is:

Warning Symbol=text, layer=actions, frame=1:Line 2: The identifier ‘loadVars’ will not resolve to built-in object ‘LoadVars’ at runtime.
loadText = new loadVars();

Total ActionScript Errors: 1 Reported Errors: 1

What do I do? Is this an MX2004 issue? I really need help guys… Thanks :look: