Dynamic movieclips

Hi all,

I want to create a dynamic slideshow that change images by it self.
It must be somethink linke this:

It have to load an jpeg and make it visible. While the jpeg A is visible, flash have to load in background a jpeg B. Flash must check when the jpeg B is loaded, and than fade from the jpeg A to jpeg B and so on for jpeg C, D …

I thout to make by action cript an empty movieClip in which flash loads the jpeg A. Then I make a second empty movie clip via actionScript, that loads the jpeg B in background…
Now i have a problem, i don’t know how to make them fade…how to tell to flash that he must change the jpeg A with the jpg B. He must in some way sobstitute the forts movieClip with the second…

Anyone knows how to do this?