guys,
need some help with some as3 error.
basically i have 4 movieclips (not dynamically generated) on the root and i want to animate them once it enters the first frame. so i have this code right, i placed all of them in one array and goes to a function that basically sets their properties..
Code:
private function addButtonEvents():void
{
for (var i:int=0;i<mc_button_array.length;i++)
{
mc_button_array[i].id=i;
mc_button_array[i].alpha=0;
mc_button_array[i].buttonMode=true;
mc_button_array[i].addEventListener(MouseEvent.MOUSE_OVER,mouseOver);
mc_button_array[i].addEventListener(MouseEvent.MOUSE_UP,mouseUp);
mc_button_array[i].addEventListener(MouseEvent.ROLL_OUT,mouseOut);
animateButton(mc_button_array[i]);
}
}
private function animateButton(evt:Event):void
{
id=evt.target.id;
Tweener.addTween(mc_button_array[id],{alpha:1,time:0.3,transition:"linear"});
}
now what i want to do after setting the properties is to animate them so that the buttons will appear one by one and not simultaneously..i just don't know how to pass the current value of the array to another function so that it animates that MC first then goes back to set the property of the next MC and animate it again...
im not sure if im passing the value of the mc properly to the next function that animates the object..
somebody please help...
