Loading external TXT file with button (undefined issue)

Hello,

I have this problem when loading external text files with HTML using a button (not onClipEvent):

When the button is pressed online, ‘undefined’ shows up in the txt field. Pressing the button again remedies the situation and the txt loads fine.

Here is the code:

on (press) {
loadVariables(“aboutus.txt”, this);
}
on (release) {
_root.about.scroller.htmlText = this.aboutustext;
}

I’m assuming it’s something to do with the data not being able to finish loading in time? Pathing issue?

It works fine when the page loads first off using:

onClipEvent (load) {
loadVariables(“aboutus.txt”, this);
}
onClipEvent (data) {
_root.about.scroller.htmlText = this.aboutustext;
}

Any idea’s? Cheers.