Undefined Variable Loading External Text

Still climbing the mountain learning AS; no doubt there is a simple answer to this question (I have tried unsuccessfully to find it in extant threads as well as between my ears).

Trying to augment the Kirupa tutorial “ActionScript Text Animation” (http://www.kirupa.com/developer/actionscript/ascript_text_animation.htm)
to take an external text file. When I switch out the line:
text = “There is only one…”
with:
myLoadVar = new LoadVars ();
myLoadVar.load(“davetextdoc.txt”)
myLoadVar.onLoad = function (success){
if (success == true) {
output.variable = “text”
output.text=myLoadVar.text;
}
}
I get the word “undefined” repeatedly loading itself. The text file is properly formatted(text=dave’s text here…) I’ve tried untold permutations to self-solve. Help is appreciated.