Comunidad de diseño web y desarrollo en internet online

problemas con loadVars

Citar            
MensajeEscrito el 04 Dic 2007 06:08 pm
hola a todos:
Estoi intentando cargar un txt, con loadvars, pero cuando carga el contenido me aparacen caracteras raros donde deverian aparecer acentos.
en codigo q utilizo es el siguiente

Código :

my_fmt.bold = true;
my_fmt.align = "justify";


my_txt.border = false;
my_txt.multiline = true;
my_txt.wordWrap = true;
my_txt.html = true;
var lorem_lv:LoadVars = new LoadVars();

lorem_lv.onData = function (src:String):Void {
    if (src != undefined) {
        my_txt.htmlText = src;
    } else {
        my_txt.text = "Unable to load external file.";
    }
}
lorem_lv.load("historia.txt");

my_txt.setTextFormat(my_fmt);

scrollLeft_btn.onRelease = function() {
    my_txt.hscroll -= 10;
    scroll_txt.text = my_txt.hscroll+" of "+my_txt.maxhscroll;
};
scrollRight_btn.onRelease = function() {
    my_txt.hscroll += 10;
    scroll_txt.text = my_txt.hscroll+" of "+my_txt.maxhscroll;
};

Por subirol

20 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 04 Dic 2007 06:14 pm

Por One

Claber

1488 de clabLevel

5 tutoriales

Genero:Masculino  

Programador Web

firefox
Citar            
MensajeEscrito el 04 Dic 2007 06:17 pm
muchas gracias
ya esta solucionado.

Por subirol

20 de clabLevel



Genero:Masculino  

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.