Textfile stuff

hello all,

can some one help me out here. Im trying to pass a variable from a text file into a variable in flash and trace it to screen. This is what i have done so far, but its not working.what am i doing wrong?

i have created a text file in the same folder as my flash.

in the text file i have this: loadedtext=hello

flash code:

function myFunction(){
trace(“Data is loaded”);

}
var container:LoadVars = new LoadVars();
container.onLoad= myFunction;
container.load(“demo1.txt”);

trace(container.loadedtext);

thanx

korkor5