Creo el array:
Código ActionScript :
private var ArrayTween:Array = new Array (footer_mc, links_mc, mp3player_mc, legal_mc);
Llamo la funcion en la public function:
Código ActionScript :
ArrayTween.forEach(tweenInicial);
Y esta es mi funcion:
Código ActionScript :
private function tweenInicial(item:*, index:int, array:Array):void{ trace("Elemento " + index + " del Array: " + item); }
El trace me vuelve null, o sea que no esta reconociendo los elementos del array
¿Que estare haciendo mal?
Este fue el ejemplo que encontre en un tip de cristalab:
Código ActionScript :
private var myArray:Array = new Array (mc1, mc2, mc3); private function myForEachFunction (item:*, index:int, array:Array):void { item.moveToNextPos (); } myArray.forEach (myForEachFunction);