[FMX] Question about external text files

Hi, I was wondering if was possible to take this code:

loadText = new loadVars();
loadText.load(“this.txt”);
//creating the loadVarsText function
loadText.onLoad = function(success) {
if (success) {
// trace(success);
poemBox.html = true;
poemBox.htmlText = this.Poems;
}
};

And instead of having the
loadText.load(“this.txt”)
have it be a variable like
loadText.load(_global.currentPoem);

Thus allowing multiple buttons to use the same code or does each button require its own code in order to load different files?