Hi there…
I’m making a photo gallery…
I want my thumb buttons to sit in place with a ladder effect…
I mean first button to y:10, second to y:15 third y:20 and go on… Then all of them to y: 5…
But with tweenmax i can just make them go to their final y coor.
the code is below:
for (var i:int = 0; i < thumbButtonArray.length ; i++)
{
thumbPath = new String();
thumbPath = thumbButtonArray*.@thumbpath;
thumbButton = new ThumbButton;
thumbButton.x = ( i * (thumbButton.width + 25)) +60;
thumbButton.y = -100 - (i * 10);
thumbButton.thumbId = i ;
TweenMax.to(thumbButton, 1.5, { bezier:[ { y:25} ], ease:Bounce.easeOut});
thumbButton.create(thumbPath);
thumbButton.addEventListener(MouseEvent.CLICK, createPicture);
thumbButton.addEventListener(MouseEvent.CLICK, holdThumbDown);
thumbButton.addEventListener(MouseEvent.MOUSE_OVER, Over);
thumbButton.addEventListener(MouseEvent.MOUSE_OUT, Out);
addChild(thumbButton);
}
I tried to use delay with tween but I couldn’t manage it…
Any ideas?