Slideshow with internal images?

I have searched the net and found many flash mx 2004 slideshows, where when a menu link is pressed, an image (from external source) slides in.

How do i go about having a menu with number of links. when i click on say link1, an image slides in but the source of that image is internal?

What code would be behind link1? And how would link1 know what image to display and where to display this image?

In other words, the whole page is in one swf? There are no images folder or any external pages.

I hope this makes sense?

Thank you.