Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/09/2008, 11:38
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
Respuesta: Problemas con RollOver y RollOut.

Hola lila-skrlatta:
Si estás queriendo hacer scroll de un texto que está dentro de un MC, al ponerlo tienes que solocarle un nombre de instancia, por ejemplo: texto.
Código para el botón bajar:
on (rollOver) {
_root.abajo.enabled = true;
this.onEnterFrame = function() {
_root.texto._y += 5;
if (_root.texto._y>=100) {
delete this.onEnterFrame;
this.enabled = false;
}
};
}
on (rollOut) {
delete this.onEnterFrame;
}

Código para el botón subir:
on (rollOver) {
_root.arriba.enabled = true;
this.onEnterFrame = function() {
_root.texto._y -= 5;
if (_root.texto._y<=-200) {
delete this.onEnterFrame;
this.enabled = false;
}
};
}
on (rollOut) {
delete this.onEnterFrame;
}

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