Foros del Web » Creando para Internet » Flash y Actionscript »

button

Estas en el tema de button en el foro de Flash y Actionscript en Foros del Web. Hola quisiera saber si es posible en flash, que cuando paso el mouse por encima de un botton aparezca un tag que diga Boton por ...
  #1 (permalink)  
Antiguo 25/09/2003, 10:49
 
Fecha de Ingreso: marzo-2002
Mensajes: 132
Antigüedad: 22 años
Puntos: 0
button

Hola

quisiera saber si es posible en flash, que cuando paso el mouse por encima de un botton aparezca un tag que diga Boton por ejemplo.
i si es asi donde esta esta propiedad.

Gracias
__________________
Xisclet
  #2 (permalink)  
Antiguo 25/09/2003, 11:01
woi
 
Fecha de Ingreso: febrero-2001
Ubicación: Barcelona - México D.F.
Mensajes: 205
Antigüedad: 23 años, 1 mes
Puntos: 0
no es bien bien una propiedad, lo debes hacer tu, si te fijas cuando creas un boton este contiene un layer y cuatro frames, pues crea otro layer y en el segundo frame (OVER) creas una movie con tu tag y entonces al estar sobre el botón actuara tu movie...
__________________
woi
  #3 (permalink)  
Antiguo 25/09/2003, 11:27
 
Fecha de Ingreso: marzo-2002
Mensajes: 132
Antigüedad: 22 años
Puntos: 0
como????
__________________
Xisclet
  #4 (permalink)  
Antiguo 25/09/2003, 12:17
woi
 
Fecha de Ingreso: febrero-2001
Ubicación: Barcelona - México D.F.
Mensajes: 205
Antigüedad: 23 años, 1 mes
Puntos: 0
si quieres te mando un ejemplo
__________________
woi
  #5 (permalink)  
Antiguo 25/09/2003, 22:08
Avatar de BeN
BeN
 
Fecha de Ingreso: agosto-2003
Ubicación: Mexico, D.F.
Mensajes: 281
Antigüedad: 20 años, 7 meses
Puntos: 0
un amigo me paso esta funcion, es buenisima, solo pegen esto en el primer frame y mas abajo se ve como usarla:

// -----------------------------
// show tooltip over movie clips
// and buttons
// -----------------------------
// revised by b
// -----------------------------
//syntax:
//movieClip.setTooltip(string[,timer,textColor,backgroundColor,borderColor])
// -----------------------------
MovieClip.prototype.setTooltip = function(theText, timer, text_color, bg_color, border_color) {
timer == undefined ? 500 : timer;
var addMsg = function (theOb, theMsg, col, bg_color, border_color, level) {
//trace(theOb);
var x = _xmouse;
var y = _ymouse;
var f = new TextFormat("verdana", 9, col != undefined ? col : 0);
theOb.createTextField('tooltip', 123456, x, y, 150, 20);
with (theOb.tooltip) {
setNewTextFormat(f);
text = theMsg;
selectable = false;
autoSize = true;
background = true;
border = true;
borderColor = border_color != undefined ? border_color : 0;
backgroundColor = bg_color != undefined ? bg_color : 0xFFFFEE;
_y -= _height;
}
clearInterval(theOb.q_t);
};
this.q_t = setInterval(addMsg, timer, this, theText, text_color, bg_color, border_color, this);
};
// --------------------
// unset the tooltip
// --------------------
MovieClip.prototype.unsetTooltip = function() {
this.tooltip.removeTextField();
clearInterval(this.q_t);
};



:::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::
C O M O U S A R L A

En los eventos de un boton colocar:

on(rollOver){
setToolTip("Probando", 500, null, 0xFFFFFF, 0x00000);
}
on(rollOut){
unsetTooltip();
}
__________________
...everything under the sun is in tune
But the sun is eclipsed by the moon.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 21:42.