getURL variable sending to second swf with xml

Hi,

PURPOSE

  • in the first swf I set a var
  • I send that var to a second swf by using the getURL method
  • in that second swf, the var is used as a (part of a) xml filename
    (eg “variable.xml”)
    ==> in that way I can load for each user the appropiate xml file into a photogallery

SENDING SWF:


on (release, keyPress "<Enter>") {
    var userN:String;
    
    //project01
        if (username == "VanOverwalle" && Password == "VO86") {
            
            userN = "VanO.xml";
                   
            getURL("login/loginGallery.swf?userN="+userN, "_blank");
                        
        } else if (username == "VanO_admin" && Password == "VO87") {
                      //something else

                        
    //project02
               } else if ( ...
...

RECEIVING SWF


//Load xml
//userN = "VanOverwalle.xml"; --> works fine

xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
// --> doesn't work
xmlData.load(gebruiker);

–> when I trace the sending movie, I can see that the variable is made as it shoud be
–> the URL is opened and I can see the userN in the URL
–> but the xml isn’t loaded

ADVICES ?

cu
bnw1984