Preloading Images + Image Array

I’ve had a search, and I can’t find anything on this(although I’m not very good at searching :cross-eye)

I’m currently trying to make a banner that loads in X amount of images, is there a way for flash to look at how many images are in a folder, and determined how many there are make an array/variable?

I’ve also tested it at 5kb/s and the images don’t load in time for the transitions and the background is left blank, is there a way to getBytesTotal/Loaded of a .jpg to preload the images before displaying them?

Any help appreciated!