Using animation function with buttons

Hey!

What I’d like to create is a menu. Let’s say, menu has 4 buttons. But instead of creating each a animation (which is the same for all of them) I’d like to create an animation function and use the function with the buttons. The question is how to create such function and integrate it with buttons. The animation function should contain onRollOver and onRollOut functions too for start. For animations I will use AS 2.0. mx.transitions.Tween.

All kind of help is awaited.

Thank You in advance

search the forums this topic has come up 5 times in the last 3 days

hint: for loop, numbered buttons

Install TweenMax.