Comunidad de diseño web y desarrollo en internet online

Problema con asfunction!!

Citar            
MensajeEscrito el 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!!

Por bluenet

100 de clabLevel



Genero:Masculino  

Sevilla

msie
Citar            
MensajeEscrito el 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

Por flasher

Invitado



 

firefox
Citar            
MensajeEscrito el 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());

Por bluenet

100 de clabLevel



Genero:Masculino  

Sevilla

msie
Citar            
MensajeEscrito el 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;

Por flasher

Invitado



 

firefox
Citar            
MensajeEscrito el 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...

Por MorphX

SWAT Team

982 de clabLevel

3 tutoriales

  SWAT

La Telaraña Digital

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

Saludos :D

Por flasher

Invitado



 

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

Por bluenet

100 de clabLevel



Genero:Masculino  

Sevilla

msie

 

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