Complex slideshow

Anyone know how I can go about doing this:

I want to create a sort of slide show with several SWFs and 1 html page. The SWF itself has FORWARD and BACK buttons (its a long story, but I can’t just have FORWARD and BACK coded in the html), and upon hitting them, i would like the SWF to call another SWF to replace itself. (again another long story, but each SWF has a low size maximum, which is why I just cant make the entire thing one large SWF).

Annnnd, to make it all smooth and easy, I would like the forward and back buttons to be coded not with the specific SWF that they are calling, but rather with a function which will determine which SWF is currently displayed and then call the appropriate next or previous SWF from an array or list…

Any thoughts?