Preloader

Hi everyone, ive come across a slight problem whilst working on a website project.

The main part is an xml driven photo gallery, whereby the stage is set to export for external as file to control the gallery.

Now, when i insert the stop(); command in the as, the gallery will stop functioning.

This causes a slight problem in making a preloader, which should be on a seperate frame so as to not load the whole swf before loading the preloader, but if i cant use the stop(); command, then the whole swf becomes dodgy looping thru the 1st preloader frame.

Also, exporting classes in frame 2 does not seem to do the trick.

Is there a different way to add a preloader to the swf?

Thanks in advance.