Issue with xml

I created a flash fla file that pulls an imge name and a url per image to be loaded into the flash file. When everything is located in the same folder: the html page calling the flash file and the xml file everything works fine. the problem is when I access the flash file from sub folders the images do not load to the flash stays blank. I feel it has something to do with the image locations, but I was wondering if anyone could give me some advice on how to fix the issue. Thanks in advance.