Loading swfs

I am loading swfs in sequence into a container. I have a next and previous button below. How do I code it so it knows the next swf in the sequence or the one before in the case of the previous button?