Loading URL.XML 4 differnet content

Ok, I’m using the XML photo gallery for a portfolio site.

So I have something like features, work, bio, etc…

I got this to work,

featured_btn.onRelease = function(){
	xmlData.load("media/featured.xml");
}
work_btn.onRelease = function(){
	xmlData.load("media/work.xml");

One problem I have is the number set does not reset. I would also like to know if there is a more proper way to do this.

Thanks for any help.