PDA

View Full Version : Simple tween class question...


dtrace
02-07-2006, 07:13 PM
How do I use the tween class so that my object animates when a button is pressed......or rolled over.

It seems like the coding is meant to just move the object ....

import mx.transitions.Tween;
import mx.transitions.easing.*;
new Tween(ball_MC, "_x", Elastic.easeOut, 0, 300, 3, true);


I'd like to have this 'ball_MC' move when a certain movieclip or button is rolled over.

How do I do this?

Thanks.