lv = new LoadVars(); lv.load("text.txt"); lv.onLoad = function(success) { if (success) { _root.txt.text = lv.txt; } };