Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/05/2008, 10:30
Avatar de Bandit
Bandit
Moderador
 
Fecha de Ingreso: julio-2003
Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 20 años, 9 meses
Puntos: 406
Re: Problema scroll efecto easing

Hola Miriamm:
A tus botones ponle como nombre de instancia: BtnArriba y BtnAbajo
En la capa para las acciones en su primer frame coloca éste código:

_root.BtnAbajo.onRollOver = function() {
abajo("presionado");
};
_root.BtnAbajo.onRollOut = function() {
abajo("");
};
_root.BtnArriba.onRollOver = function() {
arriba("presionado");
};
_root.BtnArriba.onRollOut = function() {
arriba("");
};
function abajo(estado) {
onEnterFrame = function () {
if (estado == "presionado") {
_root.eventos_txt.scroll += 1;
} else {
}
};
}
function arriba(estado) {
onEnterFrame = function () {
if (estado == "presionado") {
_root.eventos_txt.scroll -= 1;
} else {
delete (this.onEnterFrame);
}
};
}

Espero haberte sido de ayuda.
__________________
Bandit.
Si no sabes estudia y si sabes enseña.
http://www.banditwebdesign.com/