Many txt files to same movie on btn press?

I’ve managed to load text to various sections of my movie when it opens. Now I’d like to have the opportunity to have several txt files loaded in the same way but only on button press. For example, users click btn_21 and 21.txt is loaded into the movie. How could I achieve this please?

This is the code I’m using on Frame 1:

myData = new LoadVars();
//Make a reference to current timeline
//Callback handler and data fetching
myData.onLoad = function(ok) {
    //we move to the other frames only after the outside data is loaded.
    if (ok) {
        play();
    } else {
        mess.text = "Something went wrong when loading";
    }
};
myData.load("anastasio2.txt");
stop();

and Frame 2:

//now we access data form myData object that holds the loaded data from outside
for (i=0; i<=4; i++) {
    eval("Title_txt"+i).text = myData["Title"+i];
    eval("Comments_txt"+i).text = myData["Comments"+i];
}

stop();

Any help would be appreciated for sure!!! :sure:

Yossi