HTML Variables and Directory Depth

Hello all,

I have a site where each project has its own directory. I’d like to keep the swf in the main root directory while the xml index, html files and photos directory are in their own directory. So I would just change what the swf is loading by using variables in the HTML. Like this:

gallery.swf
PROJECT/index.html
PROJECT/images.xml
PROJECT/PHOTOS/image.jpg

It’s working fine except nothing is happening. I have tried tracing the problem but can’t get Flash Trace or the debugger to work and debugging within Flash doesn’t work as I am using HTML variables.

Here’s the load code. I’m using SWFobject and th variable code *so.addVariable(“dirname”, “casestudies”);
*The swf loads fine, I have a text field showing the variable and its showing the var dirname but nothing is loading. I think it might have something to do with how I am pointing to the xml file. Any ideas?

ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#000000]**var**[/COLOR] gallery_xml = [COLOR=#000000]**new**[/COLOR] [COLOR=#0000FF]XML[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];

gallery_xml.[COLOR=#0000FF]ignoreWhite[/COLOR] = [COLOR=#000000]true[/COLOR];
gallery_xml.[COLOR=#0000FF]onLoad[/COLOR] = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]if[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]xmlNode[/COLOR] = [COLOR=#0000FF]this[/COLOR].[COLOR=#0000FF]firstChild[/COLOR];
total = [COLOR=#0000FF]xmlNode[/COLOR].[COLOR=#0000FF]childNodes[/COLOR].[COLOR=#0000FF]length[/COLOR];
[COLOR=#000000]var[/COLOR] gallery = [COLOR=#0000FF]this[/COLOR].[COLOR=#0000FF]firstChild[/COLOR];
[COLOR=#0000FF]for[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#000000]var[/COLOR] i = [COLOR=#000080]0[/COLOR]; i<gallery.[COLOR=#0000FF]childNodes[/COLOR].[COLOR=#0000FF]length[/COLOR]; i++[COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
tArray.[COLOR=#0000FF]push[/COLOR]COLOR=#000000[/COLOR];
pArray.[COLOR=#0000FF]push[/COLOR]COLOR=#000000[/COLOR];
pArray.[COLOR=#0000FF]push[/COLOR]COLOR=#000000[/COLOR]; [COLOR=#808080]//this is for using the HTML variables[/COLOR]
[COLOR=#000000]}[/COLOR]
containerMC.[COLOR=#000080]loadPic[/COLOR]COLOR=#000000[/COLOR];

[COLOR=#000000]}[/COLOR] [COLOR=#0000FF]else[/COLOR] [COLOR=#000000]{[/COLOR]
    title_txt.[COLOR=#0000FF]text[/COLOR] = [COLOR=#FF0000]"Error!"[/COLOR];
[COLOR=#000000]}[/COLOR]

[COLOR=#000000]}[/COLOR];

gallery_xml.[COLOR=#0000FF]load[/COLOR]COLOR=#000000[/COLOR];
[/LEFT]
[/FONT]