you could try something like this…
set up a function to load and assign the text to the textfield:
loadText = function (file, vrbl) {
info.html = true;
var lv = new LoadVars();
lv.onLoad = function(success) {
if (success) {
info.htmlText = this[vrbl];
} else {
info.htmlText = "<b>error.</b>";
}
};
lv.load(file);
};
and you’d call the function like this:
contact.onRelease = function() {
loadText("jk87contact.txt", "jkinfo");
};
hope it helps. =)