Newbie at flash - image grid display questions

Hi, I’m a Flash beginner but have some good javascript/coding experience so I understand scripting, but getting confused with the best way to go about structuring projects in Flash. Any advice on this one would be most appreciated:

I want to display a series of images at the same time, in a grid format. Each image will fade in and fade out, then wait a delay time before displaying again. The delay time varies randomly with each image and each occurrence. The images are .jpg files sitting in a folder. There are around 300 images in total.

I can get so far as making a single movie clip which fades in and out, and I can make duplicates of this and change the image in each one. But for the whole grid this obviously involves loading all the images into my project and manually creating 300 individual movie clips and then if I later want to change the images, or even just change the name of the source folder, I’ll have to manually do it all over again.

Further complicating things is that if I use the same random variable names in each movie clip then the movies will all fade at the same rate, right? So do I have to manually create 300 individual clips all with different variable names too?

I’d rather use a generic actionscript function containing a variable name and then simply call that function as many times as I want to have the effect of
“for i = 1 to 300 {createMovieClip(i); positionIntoTheGrid(i) }”?
In Javascript this is easy, but can it be done inside Flash?

Further, and this is where my Flash virginity really shows, should I be making a Flash movie which contains the entire grid of 300 images, or should I be making a flash movie which contains 1 image and then embedding this 300 times into an HTML/PHP file using a different value of some variable for each embedding?

Thanks in advance…