Basically, I reading the data from the database and want to display the buttons according to the database and if there are more than 3 buttons on the menu, a next button will appears and onClick the next button will display the next 3 buttons.
Attached is my codes in text file and a sample swf in which I want the codes to achieve.