Comunidad de diseño web y desarrollo en internet online

Ayuda no encuentro el error!!!!!

Citar            
MensajeEscrito el 26 Jul 2006 10:42 pm
En un archivo me tira erro y en otro no
No se porque?

Código :

//arreglar texto
function(arreglarTexto(texto_str:String):String {
   texto_str = unescape(texto_str);
   return texto_str.substr(0, texto_str.length-24);
}
}
//cargar texto
var biografia_lv:LoadVars = new LoadVars();
biografia_lv.onLoad = function(exito) {
   if (exito) {
            bio_txt.text = arreglarTexto(biografia_lv.toString());
   } else {
      bio_txt.text = "Error !!!";
   }
};
biografia_lv.load("bio.txt");
stop();


Espero sus respeustas.
Desde ya muchisismas gracias!!!!

Por jorgelina

6 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 26 Jul 2006 11:58 pm
Hola. Has escrito mal el nombre de la función, y pusiste un corchete de más...

Código :

//arreglar texto
function arreglarTexto(texto_str:String):String {
   texto_str = unescape(texto_str);
   return texto_str.substr(0, texto_str.length-24);
}
//cargar texto
var biografia_lv:LoadVars = new LoadVars();
biografia_lv.onLoad = function(exito) {
   if (exito) {
      bio_txt.text = arreglarTexto(biografia_lv.toString());
   } else {
      bio_txt.text = "Error !!!";
   }
};
biografia_lv.load("bio.txt");
stop();

saludos

Por Zguillez

BOFH

10744 de clabLevel

85 tutoriales
17 articulos
3 ejemplos

Genero:Masculino   Bastard Operators From Hell Héroes Team Cristalab Editores

BCN

firefox
Citar            
MensajeEscrito el 31 Jul 2006 01:31 pm
Muchas Gracias!!!!!!!!!

Por jorgelina

6 de clabLevel



Genero:Masculino  

firefox

 

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