error increíble AS2 no se le entiende

  • vinid3
  • Novice
  • Novice
  • No Avatar
  • Registrado: Sep 17, 2009
  • Mensajes: 17
  • Status: Offline

Nota Julio 16th, 2010, 7:03 am

Hola gente, tengo un problema escuchar-desgarro no puedo resolver ..
Parece tan simple pero no funciona :( : (

Me carga de datos desde un xml, no hay problema con ella, pero cuando lo uso para enviar a una función, la función no lo reconoce...aunque si me codificar los datos, funciona, al comparar los dos, el flash me dice que son diferentes, pero al ver el resultado del seguimiento, .. idénticas theyre alguien una pista?

echar un vistazo:
Código: [ Select ]
function bridge(imageurl){
    
    imageurl2 = "resources/photos/DSCFinale2009/large/IMG_4367.jpg";
    trace(imageurl);
    trace(imageurl2);
    if(imageurl == imageurl2)trace('identical!!');
    else trace('different!!!');
    
    //_global.showimage(imageurl); //this one doesn't works
    //_global.showimage(imageurl2); //this one works
}
bridge(x.childNodes[this.indice].childNodes[3].firstChild);
  1. function bridge(imageurl){
  2.     
  3.     imageurl2 = "resources/photos/DSCFinale2009/large/IMG_4367.jpg";
  4.     trace(imageurl);
  5.     trace(imageurl2);
  6.     if(imageurl == imageurl2)trace('identical!!');
  7.     else trace('different!!!');
  8.     
  9.     //_global.showimage(imageurl); //this one doesn't works
  10.     //_global.showimage(imageurl2); //this one works
  11. }
  12. bridge(x.childNodes[this.indice].childNodes[3].firstChild);


esto me da en la salida:
Código: [ Select ]
resources/photos/DSCFinale2009/large/IMG_4367.jpg
resources/photos/DSCFinale2009/large/IMG_4367.jpg
different!!!
  1. resources/photos/DSCFinale2009/large/IMG_4367.jpg
  2. resources/photos/DSCFinale2009/large/IMG_4367.jpg
  3. different!!!
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Julio 16th, 2010, 7:03 am

  • vinid3
  • Novice
  • Novice
  • No Avatar
  • Registrado: Sep 17, 2009
  • Mensajes: 17
  • Status: Offline

Nota Julio 16th, 2010, 7:57 am

Dahm! acaba de conseguir que .. He utilizado el método toString () para limpiar la variable i enviado a la función y ahora funciona

Publicar Información

  • Total de mensajes en este tema: 2 mensajes
  • Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 63 invitados
  • No puede abrir nuevos temas en este Foro
  • No puede responder a temas en este Foro
  • No puede editar sus mensajes en este Foro
  • No puede borrar sus mensajes en este Foro
  • No puede enviar adjuntos en este Foro
 
 

© 2011 Unmelted, LLC. Ozzu® es una marca registrada de Unmelted, LLC