# Flash mc.props loop logic

**URL:** <https://forum.kirupa.com/t/flash-mc-props-loop-logic/153224>\
**Category:** Uncategorized\
**Created:** [June 30, 2005, 12:19am UTC](https://forum.kirupa.com/t/flash-mc-props-loop-logic/153224 "2005-06-30T00:19:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![0101](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/0101/32/1463_2.png) [@0101](https://forum.kirupa.com/u/0101)\
**Post date:** [June 30, 2005, 12:19am UTC](https://forum.kirupa.com/t/flash-mc-props-loop-logic/153224/1 "2005-06-30T00:19:04Z")

</div>

hi, i’m a little bit stumped here, appreciate it if someone could help  
the story:

i want to build this xml-based menu. up until animating the menu is fine, basically

- took the menu data from xml, put them into array,
- attach a template mc, duplicate & rename accordingly.

```auto
init = function(){
	menuArr = ["a", "b", "c", "d"];
	var len = menuArr.length;
	this.attachMovie("tmpl", "menu", 1, {_x: 20, _y: 100});
	for(i=0; i <len; i++){
		menus = menu.duplicateMovieClip(menuArr*, (menu.getDepth()+i)*2);
		trace(menus); // output: _level0.a, _level0.b, _level0.c, etc
	}
}
init();

```

no problem there. the problem lies in animating those mcs so that they slide in as menu starts… like in the attchment.

so, **what’s the logic** … i mean, do i put the mc coord in separate array/multidimensional array and go from there,  
or  
i dunno…

any help is great, guys, thx :hr:
