Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/10/2007, 15:25
atiro8
 
Fecha de Ingreso: octubre-2005
Mensajes: 151
Antigüedad: 18 años, 5 meses
Puntos: 1
Re: Texto dinamico, texto en dos colores

Ya lo he conseguido, lo dejo aqui por si le interesa a alguien:
Cita:
System.useCodepage = true;
import TextField.StyleSheet;
var css:StyleSheet = new StyleSheet();
css.parseCSS(".pie{color:#0000FF; text-decoration:underline;}");
///////////////////////////////////////////////////
var miLoadVars2:LoadVars = new LoadVars();
miLoadVars2.load(url+"castellano/noticia_tbl.php");
miLoadVars2.onLoad = function(ok) {
if (ok) {
if (miLoadVars2.getBytesLoaded() == miLoadVars2.getBytesTotal()) {
loading._visible = false;
var texto = "<span class='pie'><b>"+miLoadVars2.asunto+"</b></span><br>";
var texto2 = miLoadVars2.texto;
con_texto_anun.texto_txt.styleSheet = css;
con_texto_anun.texto_txt.htmlText = texto+texto2;
} else {
loading._visible = true;
}
} else {
contenedor.texto_txt.text = "Error en el servidor";
}
};
__________________
www.empresanet.info