# Moviecliploader url variable - why is it not working?

**URL:** <https://forum.kirupa.com/t/moviecliploader-url-variable-why-is-it-not-working/236113>\
**Category:** Uncategorized\
**Created:** [August 17, 2007, 11:40am UTC](https://forum.kirupa.com/t/moviecliploader-url-variable-why-is-it-not-working/236113 "2007-08-17T11:40:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fr\_ode](https://avatars.discourse-cdn.com/v4/letter/f/9d8465/32.png) [@fr\_ode](https://forum.kirupa.com/u/fr_ode)\
**Post date:** [August 17, 2007, 11:40am UTC](https://forum.kirupa.com/t/moviecliploader-url-variable-why-is-it-not-working/236113/1 "2007-08-17T11:40:28Z")

</div>

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:

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

```

Main swf:

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

```

Loaded swf:

```auto
trace(xmlfile);

```

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