hmmm… i’m not sure about this, but it sounds like this should work:
loadText = function (file, vrbl) {
webstart.info.html = true;
var lv = new LoadVars();
lv.onLoad = function(success) {
if (success) {
webstart.info.htmlText = this[vrbl];
} else {
webstart.info.htmlText = "<b>error.</b>";
}
};
lv.load(file);
};
menu.contact.onRelease = function() {
loadText("jk87contact.txt", "jkinfo");
};
you just need to fix the paths to the objects. :-\