# XML and Flash PhotoGallery Help Needed

**URL:** <https://forum.kirupa.com/t/xml-and-flash-photogallery-help-needed/152549>\
**Category:** flash\
**Created:** [June 25, 2005, 7:48pm UTC](https://forum.kirupa.com/t/xml-and-flash-photogallery-help-needed/152549 "2005-06-25T19:48:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![3f02mach](https://avatars.discourse-cdn.com/v4/letter/3/34f0e0/32.png) [@3f02mach](https://forum.kirupa.com/u/3f02mach)\
**Post date:** [June 25, 2005, 7:48pm UTC](https://forum.kirupa.com/t/xml-and-flash-photogallery-help-needed/152549/1 "2005-06-25T19:48:35Z")

</div>

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

[http://www.kirupa.com/developer/mx2004/xml\_flash\_photogallery.htm](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! 🙂

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.
