
02/09/2008, 11:38
|
 | Moderador | | Fecha de Ingreso: julio-2003 Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 21 años, 7 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. |