Qwick Qwestion regarding loading text externally and buttons!

So if I have the code

var currNewsPage:Number = 1;
loadText = new LoadVars();
    loadText.load("TEXT1.txt");
    loadText.onLoad = function(success) {
        if (success) {
            // trace(success);
            newsBox.html = true;
            newsBox.htmlText = this.myNews;
        }
    }

on a frame and I have a next button and a previous button. So, can I just have different text files like TEXT1 and TEXT2 and TEXT3 on the server, then just add the code “loadText.load(“TEXT” + (currNewsPage +or- 1) + “.txt”);” on the buttons? Will it work like that? (and of course, increment or decrement currNewsPage)

edit:// also if i made it like that and it worked like that how would i get Flash to find the number of pages total, so I could make sure the next button doesnt overincrement and load a nonexistent page?