Slideshow

Im pretty much making a slide show for multiple sets of images. I dont want to create a new slide show for each. Is there a way that I can load an image set externaly to make it more dynamic? Also the amount of pictures may change so I cant just hard code “x” amount of frames in the swf. Any ideas?