a = new LoadVars(); a.onLoad = function(ok) { if (ok) { ab = this.web; btn.onPress = function() { getURL("http://"+ab); }; } }; a.load("web.txt");