Loading XML file into an External SWF?

Here’s my problem:
I have buttons on my main timeline. Click a button and it loads an external ‘gallery.swf’ into the main timeline. gallery.swf has an instance of Slideshowpro on it. Slideshowpro gets all it’s info from an external XML file through the AS: my_ssp_instance.xmlFilePath = “pathtofile.xml”;

I’m trying to set the XML file dynamically, but when I click the button on my main timeline it loads the xml file before there is the gallery.swf loads. I’ve been told to use movieClipLoader, but do not know how. Also, someone suggested doing the following:

On my button:
on (press)
{ _root.buttonsDown_mc.gotoAndStop(1);
_root.strXMLpath = http://mywebsite.com/ssp_director/images.php?gid=2;
_root.blnXml = true;
releaseWws(“sports”);
trace (“XML=”+my_ssp.xmlFilePath);}

Then on the gallery.swf:

listenerObject = new Object();
listenerObject.albumData = function(eventObject)
{if (blnXML == true){
ssp.xmlFilePath = _root.strXMLpath; blnXML == false; }}
ssp.addEventListener(“albumData”, listenerObject)

This isn’t working though, it never get’s inside the ‘if’ statement. Any help? thanks