Moviecliploader url variable - why is it not working?

Hi!

I’m building a small website containing a lot of different galleries, and I wanted to use the same swf (“gallery.swf”) for all of them by loading it with a changing variable in the url.

External menu text file:

<a href="asfunction:loadFile,pages/gallery.swf?xmlfile=people">People</a>

Main swf:

function loadFile(url) {
    my_mc.loadClip("xml/"+url+".xml", "container");
}

Loaded swf:

trace(xmlfile);

However, it’s not working! Does anyone know why?:hoser: