Gallery with XML

Hi,

I use Gallery component made by Maarten.

This gallery load line to the pictures from XML. Instead of a big pic, I changed XML and now it is loading SWF file (preview.swf).

That SWF file loads pic’s from dir (not using XML).

Everything works fine when I run preview.swf, but
running main SWF it look for pic’s in parent dir.

I can’t load movie into any level 'cause it’s component,
and I don’t know where it is placed.

For now, I have three directories, but I would have hundreds.
Every directory must have preview.swf, so I can’t change source code of preview.fla for every directory. Is there something like wild caracters (* and ? for DOS), to load pictures depending from which directory preview.swf is called.