Hi again!
In a preview post, without success, I was trying to do an Elastic Menu in AS3.
The problem creating the menu with differents elements and submenus is resolved.
Now, I need to relocate the menu elements dinamicly through TweenLite.
For that, I use this method named posicionar();
As I say in the commented codeline, the Tween doesn't get the right destination. I think is because the loop or may not. Should be another logic to do relocating stuff.Code:private function posicionar():void { for (i=0; i<tamArray-1; i++) { var elemento=itemArray[i+1]; newdestino = (itemArray[i].y+itemArray[i].height+2); //elemento.y=newdestino; //When I use the line above, works perfect. If I use the line below I need 3 clicks over one element to relocate the rest in the right position. TweenLite.to(elemento, 1, {x:elemento.x, y:newdestino, ease:Elastic.easeOut}); } }
Any help is wellcome. If I solve this problem, I will share the hole code for a Elastic XML Menu with the forum people.
Thanks in advance.
RO




Reply With Quote
