Perplexing preloader problem

well probably only for a newbie…

I’m setting up a small website for my fledgling photography business, and I’m having problems with the preloader for my gallery.

Here’s my preloader problem…

http://conceptsmith.com.au/csgallerywpreloader.swf

And the gallery without the preloader…

http://conceptsmith.com.au/csgallery.swf

It seems I need to somehow get the preloader out of the loop once the gallery has loaded? Here’s my AS for the preloader…

[FONT=Arial]preloader as frame 19 [/FONT]

[FONT=Arial]ifFrameLoaded(“main”, 256) {[/FONT]
[FONT=Arial] gotoAndPlay(“main”, 1);[/FONT]
[FONT=Arial]}[/FONT]

[FONT=Arial]preloader as frame 20[/FONT]

[FONT=Arial]gotoAndPlay(1);[/FONT]

Here’s how my flash page is set up…

http://conceptsmith.com.au/flash.jpg

Any help would be much appreciated!

Steve