function loadTxt(theTxt){ var lv:LoadVars = new LoadVars(); lv.onLoad = function(success:Boolean){ if (success){ my_text.html = true; my_text.htmlText = lv.txt; my_text.mouseWheelEnabled = true; }else{ trace ("cannot load text!"); } }; lv.load(theTxt); }
Jump To Top of Thread