Cs3 as2 urgent urgent dynamic gallery help

Hi everyone,

I outsouced a dynamic gallery to a freelancer who has completed the initial gallery but who is now having difficulty getting online (the deadline was yesterday!)

The gallery that he created has to be used multiple times across the site and everything is fine except for this one problem.

The user views a gallery
The user goes to another gallery
The user returns to the first gallery-problem

The already viewed gallery wont load.

AS files attached and main movie AS below


stop();
import as.*;

var settings:Object = new Object();

settings.imagePath= "http://www.server/prodimages/";
settings.thumbPath = "http://www.server/prodimages/thumbnails/";
settings.XMLPath = "http://www.server/scripts/exampleFileName.php";

var galleryMC = new Gallery(mainMC, settings, preloader); 

Obviously if I could get in touch with the freelancer I’d get him to fix it up but this is now SO URGENT!

Any help much appreciated…