has usado estilos CSS para formatear tu texto ?? crea un archivo CSS donde guardes <byline> como estilo, lo guardas: html_styles.css
en tu archivo txt puedes usar etiquetas para estios, p.ej:
&titulo=Tu ::TEMA::&
&texto=<byline><b>Este es</b> el corrido, del caballo ballo : <img src='jueces.jpg' width='80' height='120'/></byline>&
despues en tu codigo as usa esto:
Código :
var colabora:LoadVars = new LoadVars();
colabora.onLoad = function(exito:Boolean) {
if (exito == true) {
titulo.htmlText = "<p align=\"center\">"+this.titulo+"</p>";
texto.htmlText = "<p align=\"center\">"+this.texto+"</p>"// tu img esta en el txt
} else {
texto.htmlText = "<p align=\"center\">error de carga</p>";
}
trace (exito)
};
colabora.load("colabora.txt");
//
var style_sheet = new TextField.StyleSheet();
// Crear objeto de hoja de estilos
var css_url = "html_styles.css";
// Ubicación del archivo CSS que define los estilos
// Cargar archivo CSS y definir controlador onLoad:
style_sheet.load(css_url);
style_sheet.onLoad = function(ok) {
if (ok) {
// Hoja de estilos ha cargado sin errores,
texto.styleSheet = style_sheet;
texto.htmlText = colabora.texto;//cadenaGral;
}
};
//
arriba.onPress = function() {
texto.scroll = texto.scroll-1;
};
abajo.onPress = function() {
texto.scroll = texto.scroll+1;
};
stop();