Changing which .txt file is loaded for a dyn textbox

sorry… :stuck_out_tongue:

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);
};
**loadText("jk87contact.txt", "jkinfo");**

if you put that script in the frame actions, it will automatically load jk87contact.txt. got it? =)