Putting dynamic loaded text into a variable

i want to be able to dynamically load some text from a .txt file…
i use this method


loadText = new LoadVars();
loadText.load("blog.txt");
loadText.onLoad = function() {
       blog.text = this.blogtext;
};

using this method i can load the txt from ‘blog.txt’ into a dynamic text box. but this isn’t what i want…
the text i put in blog.txt i want to be equal to a varible in flash.

so i tired…

loadText = new LoadVars();
loadText.load("blog.txt");
loadText.onLoad = function() {
	blog.text = this.blogtext;
	var text = this.blogtext;
};
trace(text);

for the output screeen i got “undefined”. can anyone tell me how to fix this so when i run it, the output says exactly what i typed in the “blog.txt”?