Triggering button actions remotely

i have a menu of buttons in numerical sequence such that each button (“1” , “2” , “3” , “4” , etc. ) loads a new .jpg into an empty movie clip on the main stage. i guess you could say it’s a sort of portfolio kind of set-up.

while the user can obviously navigate the menu manually, choosing any of the numbered links, i also want to provide the option of cycling through each link in sequence, just as they are numbered using “previous” and “next” buttons which would automatically advance or back-track through each of the possible selections, loading the corresponding .jpgs.

what i’m having trouble with is figuring out how to code such buttons (“previous”/“next”). i know that i would have to introduce variables in order to make the buttons dynamic. but its more the actual execuction of the script that i’m not too sure how to structure.

assuming that each of the “number” buttons in the menu triggers the loading of a .jpg when pressed, is there some way i could simulate the action contained on that button? in other words, if for example number “7” was currently loaded, could i code the “next” button in such a way that pressing it would in effect, amount to pressing the number “8” button by proxy? (and thus initiating the actions contained on it) i hope that makes sense.

i have the suspicion i’m going about this the wrong way, so any guidance would be very welcome.

victor