onClipEvent(enterFrame){
loadVariables("variables.txt", this);
}
By using onClipEvent (enterFrame), that makes sure that the text dynamically updates as soon as the text file is updated.
Right now, though, loadVariables() doesn't really do anything, because we haven't told it what file to load.


