Changing global variable problem

Hi

I’m having a problem changing the value of a global variable.

I’m using the xml photogallery thats available on Kirupa.
I have 2 movies on the main timeline: the galley movieclip and a navigation movie clip. I want the buttons in the navigation clip to change the global varable ‘section’ and this to be passed to the galley xml load function. So far i have this for the button:


gallery1button.onRelease = function(){
	_root.nav.select(0);
	 _global.section= "gallery1";
	};

I am using php to deliver the xml data dynamically to flash so I only have one xml file for several galley section. the AS looks like this:


xmlData.load("photos_xml.php?section="+_global.section);

It doesnt seem to be working though. Any ideas?

Thanks in advance.