Código PHP:
boton1.onRelease = function() {
Tw(mc1, 0, 100)
Tw(mc2, 100, 0)
Tw(mc3, 100, 0)
};
boton2.onRelease = function() {
Tw(mc1, 100, 0)
Tw(mc2, 0, 100)
Tw(mc3, 100, 0)
};
boton3.onRelease = function() {
Tw(mc1, 100, 0)
Tw(mc2, 100, 0)
Tw(mc3, 0, 100)
};
import mx.transitions.Tween;
import mx.transitions.easing.*;
function Tw(_mc, ini, fin) {
var tiempo = 3;
var myTween:Tween = new Tween(_mc, "_alpha", Elastic.easeOut, ini, fin, tiempo, true);
}