Help with Sliding menu

I am trying to make a similar menu that slides from one frame to the next, Such as this flash file <http://www.kirupa.com/developer/flash5/slidingmenu.htm>
But I don’t want the number of button for the number of slides, I want to be able to have a next and back button that go from one slide the next and back, instead of any slide.