# Loading URL.XML 4 differnet content

**URL:** <https://forum.kirupa.com/t/loading-url-xml-4-differnet-content/173290>\
**Category:** flash\
**Created:** [December 22, 2005, 11:01pm UTC](https://forum.kirupa.com/t/loading-url-xml-4-differnet-content/173290 "2005-12-22T23:01:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanD](https://avatars.discourse-cdn.com/v4/letter/d/73ab20/32.png) [@DanD](https://forum.kirupa.com/u/DanD)\
**Post date:** [December 22, 2005, 11:01pm UTC](https://forum.kirupa.com/t/loading-url-xml-4-differnet-content/173290/1 "2005-12-22T23:01:58Z")

</div>

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,

```auto
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.
