Flash xml gallery inside html page problem

Hello,
I am having some problems and cannot find a solution. I am building an HTML website with numerous xml flash galleries. I need to keep it very organized to allow easy updates in the future.

Here is how I have the files organized:

inside folder ‘gallery’ I have a series of other folders: gallery1, gallery2, gallery3 etc… I will use gallery1 as an example:

gallery> gallery1 contents

  • gallery1.swf
  • images.xml
  • image1.jpg
  • image2.jpg

Outside of the above folders on the root I have an html page “gallery1.html”. This loads gallery1.swf into it.

The problem is I can browse inside the gallery1 folder and open the swf and the images display correctly. But when I try to view it through the HTML page outside of the folder none of the images appear. I assume this is probably something to do with the path I am using and have tried numerous combinations but can not seem to sort it out. I personally don’t see why flash wouldn’t find the xml file the same as it did before.

I really would like to maintain the same directory tree structure since it suites my needs. Any help would be appreciated.

Thanks