Les cuento como funciona.
Hay dos botones bt3 y bt4
Una ira que son las imágenes y una tira que hará de máscara
Y por último la programación del fotograma
Código:
bt3.onRollOver = function() {
Fin = 25;
limite = Fin+10;
this.onEnterFrame = function() {
if (_root.mc._x>=limite) {
_root.mc._x -= 10;
} else {
_root.mc._x = Fin;
delete this.onEnterFrame;
}
};
};
bt3.onRollOut = function() {
delete this.onEnterFrame;
};
bt4.onRollOver = function() {
Inicio = 637.4;
limite = Inicio-10;
this.onEnterFrame = function() {
if (_root.mc._x<=limite) {
_root.mc._x += 10;
} else {
_root.mc._x = Inicio;
delete this.onEnterFrame;
}
};
};
bt4.onRollOut = function() {
delete this.onEnterFrame;
};

