Need some LoadVars() help

im working on a project that reads a .txt file and prints it’s contents into a dynamic text box. im using LoadVars to load the .txt file into a variable. the weird thing is when i trace the variable, the output box displays everything it should but the dynamic text box displays this:

onLoad=[type Function]

so what am i doing wrong? i need the loaded text to be a string… heres my AS:

[AS]
var intervalID;
var loadText = new LoadVars();
loadText.load(“text.txt”);
loadText.onLoad = function(success) {
trace(unescape(loadText));
intervalID = setInterval(spill, 40);
};
var contents = unescape(loadText);
var to = String(contents.length);
var from = to;
function spill() {
if (from>1) {
from = Math.floor(from*.70);
myTextBox.text = contents.substring(from, to);
} else {
myTextBox.text = contents;
clearInterval(intervalID);
}
}
stop();
[/AS]