# Animated xml menu

**URL:** <https://forum.kirupa.com/t/animated-xml-menu/164940>\
**Category:** flash\
**Created:** [October 6, 2005, 6:53am UTC](https://forum.kirupa.com/t/animated-xml-menu/164940 "2005-10-06T06:53:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jareish](https://avatars.discourse-cdn.com/v4/letter/j/54ee81/32.png) [@Jareish](https://forum.kirupa.com/u/Jareish)\
**Post date:** [October 6, 2005, 6:53am UTC](https://forum.kirupa.com/t/animated-xml-menu/164940/1 "2005-10-06T06:53:46Z")

</div>

Hi all, i’ve got myself a little problem. I want to make an xml menu. That aint the problem, but i want it to be animated. So after the preloading of the swf, the menu needs to drop down, piling up the items. You can see an Example at[Danecook.com](http://www.danecook.com) and press “Press” (lol). On the left you see a Newsfeeder preloading and then dropping down while the boxes expand. I looked at every tutorial, googled 5 hours but coulndt find something remote. Only those “instant” showing menu.

I should make 1 Movieclip with a box expanding from small to big and put a stop in the end, and put a dynamic textarea in the lastframe of the movieclip, then load the xml and drop the boxes one by one. Check the site and you’ll understand.  
It would be something like

```auto
menuXml = new XML();
	 menuXml.ignoreWhite = true;
	 setInterval(makeMenu, 500, ee);
	 menuXml.onLoad = function(success) {
 if (success) {
  menuItem = this.firstChild.childNodes;
  for (var i=0; i<menuItem.length; i++) {
	 item = _root.attachMovie("itemClip", "itemClip" + i, i);
	 item._x = 0;
	 function(MakeMenu) 
	  {
		   for (var j = 0; j<20*i; j++) {
		   item._y += j
		   }
	 }
	 item.itemLabel.text = menuItem*.attributes.name;
	 item.myUrl = menuItem*.attributes.url;
	 item.onRelease = function() {
	  getURL(this.myUrl,"_blank");
  }
 }
}
	}
	 menuXml.load("myMenu.xml");
	 setInterval("MakeMenu", 200);

```

I dont know exactly what to do with the makemenu function. Is using the setinterval method the right and best thing to do or is something else easier?
