XML and Flash PhotoGallery Help Needed

I have followed along with the tutorial for creating the xml and flash photo gallery. It is a great tutorial, and everything worked fine. :slight_smile:

http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm

Now I made a small change to make the gallery more dynamic. Here is what I did. I changed the line in the actionscript that references the location of the xml file to read: xmlData.load (id+".xml");
Then when I embed the swf into my html page I embedded it with the variable like this: “movie.swf?id=gallery1”

Then I uploaded an xml file named gallery1.xml to the same directory as the swf file. I tested the page and it worked great! :slight_smile:

Now the problem. If I embed the flash file into an html page that is on a different domain, the swf loads, but I do not see any of the images or descriptions, it just says “test” in the dynamic text boxes.

I have read about Macromedia’s security that does not allow for remote xml file to be accessed, so I thought maybe that was the issue, but no luck. If I change the line in the actionscript to read: xmlData.load (“gallery1.xml”); it does work (even from the remote domain).

So it seems to me that the variable “id” is not being passed correctly. I would really appreciate any help that anyone can provide. I am driving myself crazy trying to get this to work.

Thanks in advance for your help.