Hi there:
I’m trying to create various tween for various movies, comething like this:
import mx.transitions.Tween;
import mx.transitions.easing.*;
function fade_anim(mc, max, min, tempo) {
var bot_alpha:Tween = new Tween(eval(mc), "_alpha", Regular.easeIn, max, min, tempo, true);
bot_alpha.onMotionFinished = function() {
fade_anim(mc, min, max, tempo);
};
}
fade_anim("barra3",90,20,1);
fade_anim("barra4",30,80,1);
this code works without problem.
My problem is how to call a specific tween to stop it, for example: onrollover stop the tween assigned to “barra3” mc for example
I can’t use bot_alpha.stop() it doesn’t work. I think it’s because i have multiple “bot_alpha” tweens, i need something to dynamic create bot_alpha1; bot_alpha2; … …
Thanks for the help!