Well, I can't find my fla that had exactly what you're looking for But I did find another file that has the functionality you need. It's a slideshow that reads from an xml file and load a stylesheet to format some html text from the xml to do captions. At the bottom of the slideshow it numbers, basically, the image and that part has the animation you're looking for. If you're just starting out what I wrote may be a bit confusing but if you can pull out the part that has the animation I think it could really help you.

get it at clients.mneilsworld.com/flashkit/slider.zip