¿Quieres registrarte?

Problema con asfunction!!

Citar            
MensajePublicado: 24 Oct 2005 07:34 pm
hola a tod@s!

tengo un código en action script que incorporaba asfunction, todo funcionaba perfectamente hasta que tuve que cambiarlo a Flashplayer7 para que funcionaran los so.

Alguien sabe como solucionar esta incompatibilidad??
Aqui os muestro parte del código:

Código :

texto_noticias += ("<a href='asfunction:obtenerDetalle,"+raiz.childNodes[n].childNodes[m].attributes.id+"---"+raiz.childNodes[n].childNodes[m].attributes.nick+"---"+raiz.childNodes[n].childNodes[m].attributes.foto+"'>"+compruebatexto(raiz.childNodes[n].childNodes[m].attributes.nick)+"</a><br>");


MIL GRACIASSS!!

bluenet


clabLevel: 97 Genero:Masculino
Sevilla



  msie
MP     Web
Citar            
MensajePublicado: 24 Oct 2005 08:28 pm
pos yo lo veia bien checa

Código :

var fnObtenerDetalle = function(sAlgo:String){
   trace("Hola" + sAlgo);
}
texto_noticias.html   =   true;
texto_noticias.htmlText += ("<a href='asfunction:fnObtenerDetalle,o_O?'>"+ "Click" +"</a><br>");


Saludos :D

flasher
Invitado





  firefox
   
Citar            
MensajePublicado: 24 Oct 2005 08:48 pm
Aqui te dejo casi todo el codigo.
Lo que hace es cargar todos los nicks, de los usuarios registrados, cargandolos desde un xml. Todo funciona perfecto en flashplayer 6 pero en flash player 7 no me funciona. En vez de salirme los nicks me sale undefined, undefined, undefined.... Como lo podría solucionar?

Código :

datos_agenda = new XML();
datos_agenda.ignoreWhite = 1;
datos_agenda.onLoad = function(exito) {
   if (exito) {
      var texto_noticias = "";
      var raiz = this.firstChild;
      var hijos = this.firstChild.childNodes.length;
      if (hijos != 0) {
         for (var n = 0; n<hijos; n++) {
            texto_noticias += ("");
            for (var m = 0; m<raiz.childNodes[n].childNodes.length; m++) {
               texto_noticias += ("<a href='asfunction:obtenerDetalle,"+raiz.childNodes[n].childNodes[m].attributes.id+"---"+raiz.childNodes[n].childNodes[m].attributes.nick+"---"+raiz.childNodes[n].childNodes[m].attributes.foto+"'>"+compruebatexto(raiz.childNodes[n].childNodes[m].attributes.nick)+"</a><br>");
            }
            if (n<hijos-1) {
               texto_noticias += "";
            }
         }
         noticias.htmlText = texto_noticias;
      } else {
         noticias.text = "No hay usuarios.";
      }
   } else {
      noticias.htmlText = "<b>Error al cargar los datos</b>";
   }
};
datos_agenda.load("agenda2.xml?rn="+new Date().getTime());

bluenet


clabLevel: 97 Genero:Masculino
Sevilla



  msie
MP     Web
Citar            
MensajePublicado: 24 Oct 2005 10:32 pm
bueno si no veo la estructura del xml no podre definir bien pero...
coloca esto

Código :

var datos_agenda:XML = new XML();
datos_agenda.ignoreWhite = true;

flasher
Invitado





  firefox
   
Citar            
MensajePublicado: 25 Oct 2005 05:33 am
Ya está resuelto, era que no consideró el case sensitive del nuevo FP7 y tenía una función declarada como 'compruebaTexto' y la llamaba como 'compruebatexto' xD

Saludos...

MorphX
SWAT Team

SWAT
clabLevel: 992

2 Tutoriales
1 Tip

  firefox
MP    
Citar            
MensajePublicado: 25 Oct 2005 02:22 pm
:roll: suele pasar
XD creo que muchos caemos en ese detalle XD XD

Saludos :D

flasher
Invitado





  firefox
   
Citar            
MensajePublicado: 25 Oct 2005 04:38 pm
Muchísimas gracias a los dos!!
Flasher y MorphX :D

bluenet


clabLevel: 97 Genero:Masculino
Sevilla



  msie
MP     Web

   Página 1 de 1

Responder al tema
Respuesta Rapida


 

 

Cristalab BabyBlue + BloodBerry © 2007 Cristalab
Powered by phpBB © 2001, 2007 phpBB Group

3 6 7 8 10 11 12 14 15 17 18 28 34 38 40 44 45 46 47 48 49