Preloader for dynamicly loaded content

Hi, I’ve just started to learn about how xml and flash can work together and how to load external files into a swf. Right now im somewhat stuck though. I need to load a jpg into the swf, show the load status and then load another jpg right away. Could someone help me out?