voltar para ponto inicial
estou tentando fazer uma animação via action e até agora consegui apenas fazer com que o movieclipe se movimente de um ponto inicial, agora quero que quando eu clique nele ele volte ao ponto inicial. alguem pode me ajudar? segue o codigo abaixo.
import mx.transitions.Tween;
import mx.transitions.easing.*;
//botão Start
mc_int1.onRelease = function(){
primeiroTween.start();
var primeiroTween:Tween = new Tween(mc_int1, "_x", Back.easeOut, mc_int1._x, -210, 1, true);
}
mc_int2.onRelease = function(){
segundoTween.start();
var segundoTween:Tween = new Tween(mc_int2, "_x", Back.easeOut, mc_int2._x, -160, 1, true);
}
mc_int3.onRelease = function(){
terceiroTween.start();
var terceiroTween:Tween = new Tween(mc_int3, "_x", Back.easeOut, mc_int3._x, -110, 1, true);
}Discussão (8)
Carregando comentários...