Quisiera saber si puedo hacer que un tooltip tenga más de un texto y cómo aplicarlos, el código que tengo es el sig.:
Código :
function tooltip (texto){ _root.tooltip_mc.startDrag(true); _root.tooltip_mc._visible = true; _root.tooltip_mc.tex.text = texto; _root.tooltip_mc.tex.autoSize = true; largo = _root.tooltip_mc.tex._width; _root.tooltip_mc.fondo._width = largo+2;} function resettool(){stopDrag(); _root.tooltip_mc.tex.text = "" _root.tooltip_mc._visible = false; _root.tooltip_mc._x = -300 }
Donde ''tex'' es el texto que va dentro del tooltip( y el único T-T), y ''tooltip_mc'' es el cuadro donde están el texto y el fondo.
Para el botón o clip al que quiera ponerle el tooltip, le pongo este código:
Código :
on(rollOver){ _root.tooltip("Cristalab Rokz"); } on(rollOut){ _root.resettool(); }
La pregunta está al inicio: cómo pongo dos o más textos, y que digan algo distinto =S