myData = new LoadVars(); myData.onLoad = function () { var _loc1 = this; myText_txt.text = _loc1.home; myText_txt = _loc1.home; Test_txt.htmlText = _loc1.test; AboutUs_txt.htmlText = _loc1.aboutus; Food_txt.htmlText = _loc1.food; _global.content = new Array(myText_txt, AboutUs_txt, Food_txt, Test_txt); }; myData.load("index2.php");