Build menu order with tweener class?


function showsubMenu(x,y,thisArray,gotoArray)
{
	
	var curr_item:MovieClip;
	var defaultX:Number = x;
	for (i=0; i<thisArray.length; i++) {
curr_item = submenu_mc.attachMovie("menuItem", "menuItem"+i, i);
		curr_item._x = -250;
		curr_item._y = y + i * 40;
		......
	}
	for (i = 0; i < thisArray.length; i++) {
		curr_item = submenu_mc["menuItem"+i];
		Tweener.addTween(curr_item, {base: slideIn } );
	}
}
var slideIn : Object = {
	_x:20,
	time:1.5,
	delay: 2,
	transition: "linear"
}

now all menuItem’s slide in at ones. but i want to slide them in one after the other?

regards

ok i think i found a little solution not very handsome


for (i = 0; i < thisArray.length;i++) {
	Tweener.addTween(submenu_mc["menuItem"+i], { base: slideIn, time:1+(i*0.3)} );
	}

goto http://flashservices.blogspot.com/
I think this is what you need… right?

[quote=keitai;2330923]ok i think i found a little solution not very handsome


for (i = 0; i < thisArray.length;i++) {
    Tweener.addTween(submenu_mc["menuItem"+i], { base: slideIn, time:1+(i*0.3)} );
    }

[/quote]

hmm, tx but not exactly

goto the same location and download the source… it s free
i am sure it is the same logic you are looking for.