XML image gallery

i have went through the XML Gallery tutorial and am trying to use the same concept within a movie i’m making.

the code is working fine but sometimes the first image doesnt load the first time you click into that movie. i think i need a preloader or move the functions to the main timeline and just call them from within the movie that loads the images. i’m pretty sure its a loading issue but am kinda stuck. any help is greatly appreciated.

you can check out what i have so far here. just click gallery and choose one of the galleries.