XML Photo Gallery

I want to use the gallery as an external SWF but it does not work because of this.onEnterFrame = function()

When I remove all the ‘if loaded loops’ it works fine but without the preloader. How can I solved this?

Karel Delvoye