Comunidad de diseño web y desarrollo en internet online

no carga XML

Citar            
MensajeEscrito el 28 Sep 2009 06:22 pm
disculpen alguien me pude ayudar .. mi prblema es el siguiente

en mi aplicacion cargo imagenes a flash desde una base de datos, mediante una consulta php que convierto a xml, todo perfecto hasta aqui .. ya en el flash mando llamar cargar mi xml , y perfecto todo sale bien.. si las carga.. y si las miro cuando corro el SWF.

EL PROBLEMA ESTA EN CUANDO LO PUBLICO COMO HTML Y LO SUBO AMI SERVIDOR LOCAL ,AKI ES DONDE NO ME CARGA LAS IMAGENES NI NADA QUE TENGA QUE VER CON LOS XML , YA LO INTENTE EN INTERNET EXPLORER, EN MOZZILLA Y NADA.

YA SUBI E N LA MISMA CARPETA LAS IMAGENES QUE CARGO,, LAS CONSULTAS EN PHP QUE SON LOS XML.

YA NO SE QUE MAS PUEDA SER..

sI ALGUIEN PUEDE ORIENTARME LO AGRADESCOO MUCHO SI NESESITAN VER MI CODIGO ME DICEN ..

GRACIAS.!!

Por carych

37 de clabLevel



 

msie7
Citar            
MensajeEscrito el 28 Sep 2009 07:26 pm
Alguna información del código. :?

Por davidlopezgamero

Claber

134 de clabLevel



  Héroes

Port de la Selva - GIRONA

safari
Citar            
MensajeEscrito el 28 Sep 2009 07:37 pm
este es el codigo que usoo


Código ActionScript :

con=0;
// -- creo un nuevo objeto XML
miXML = new XML();
// -- ignorar espacios 
miXML.ignoreWhite = true;
miXML.onLoad = function(succes) {
   if (succes) {
      // -- por cada nodo hijo del nodo principal...
      for (var i = 0; i < this.firstChild.childNodes.length; i++) {
         con++;
         // -- delaro una variable que recoje el atributo del nodo (nombre de la imagen)
         idImagen = this.firstChild.childNodes[i].attributes.id;
         // -- creo un clip de película vacio 
         holder_mc = createEmptyMovieClip("holder_mc" + i, i + 100);
         // -- creo un clip de película vacio 
         item = holder_mc.createEmptyMovieClip("diapo" + i, i + 100);
         // --  cargo la imágen el clip vacio
         if (con==1){
            idImagen = this.firstChild.childNodes[i].attributes.id;
            holder_mc._x = 178;
            holder_mc._y = 207;
            holder_mc.onRollOver  =  function(){         
               this._xscale =190;
            this._yscale= 190;
                                       };
                                       
            holder_mc.onRollOut  =  function(){         
               this._xscale =100;
            this._yscale= 100;
                                       };
            holder_mc.onPress  =  function(){
               
               gotoAndStop(3);               };
            
                  }
         //imagen del telefono
         if (con==2){
            idImagen = this.firstChild.childNodes[i].attributes.id;
            holder_mc._x = 80;
            holder_mc._y = 270;
            
            
                  }
         // imagen usuario         
            if (con==3){
            idImagen = this.firstChild.childNodes[i].attributes.id;
            holder_mc._x = 45;
            holder_mc._y = 194;
            holder_mc.onRollOver  =  function(){         
               this._xscale =190;
            this._yscale= 190;
            
            };
            holder_mc.onRollOut  =  function(){         
               this._xscale =100;
            this._yscale= 100;
            
            };
            holder_mc.onPress  =  function(){   
               gotoAndStop(2);               
                                    };
                     }
            //imagenTelefono         
            if (con==4){
            idImagen = this.firstChild.childNodes[i].attributes.id;
            holder_mc._x = 205;
            holder_mc._y = 280;
                     }
            //imagenUsuario         
            if (con==5){
            idImagen = this.firstChild.childNodes[i].attributes.id;
            holder_mc._x = 275;
            holder_mc._y = 181;   
            holder_mc.onRollOver  =  function(){         
               this._xscale =190;
            this._yscale= 190;
                                       };
            holder_mc.onRollOut  =  function(){         
               this._xscale =100;
            this._yscale= 100;
                                       };
            holder_mc.onPress  =  function(){      
            
               gotoAndStop(4);               };
               
                     }
               //imagenTelefono
            if (con==6){
            idImagen = this.firstChild.childNodes[i].attributes.id;
            holder_mc._x = 315;
            holder_mc._y = 160;}
            //imagenUsuario
            if (con==7){
            idImagen = this.firstChild.childNodes[i].attributes.id;
            holder_mc._x = 275;
            holder_mc._y = 260;
            holder_mc.onRollOver  =  function(){         
               this._xscale =190;
            this._yscale= 190;
                                       };
            holder_mc.onRollOut  =  function(){         
               this._xscale =100;
            this._yscale= 100;
                                    };
            holder_mc.onPress  =  function(){         
               gotoAndStop(5);               };
                     }
         //imagenTelefono
         if (con==8){
            idImagen = this.firstChild.childNodes[i].attributes.id;
            holder_mc._x = 315;
            holder_mc._y = 335;}
         if (con==9){
            idImagen = this.firstChild.childNodes[i].attributes.id;
            holder_mc._x = 424;
            holder_mc._y = 194;
            holder_mc.onRollOver  =  function(){         
               this._xscale =190;
            this._yscale= 190;
                                       };
            holder_mc.onRollOut  =  function(){         
               this._xscale =100;
            this._yscale= 100;
                                    };
            holder_mc.onPress  =  function(){         
               gotoAndStop(6);               };

            }         
                  
         if (con==10){
            idImagen = this.firstChild.childNodes[i].attributes.id;
            holder_mc._x = 460;
            holder_mc._y = 270;
            }                  
         item.loadMovie(idImagen);
         }
   }
};
miXML.load("http://10.6.2.113/SegHigiene/xml_fotos_estatus_SH.php");


stop();



eEstamedio enrredoso pero tratare de explicar es un departamento donde ubica a empleadoss y es dodne carga las fotos de los empleados , y aparte biene unas fotos de telefonos reportando el sattus del telefono ... todo lo jalo de base de datoss..


pero como te digo si se be en flash todo bien el problema esta nomas cuando lo subo al servidor..

Por carych

37 de clabLevel



 

msie7
Citar            
MensajeEscrito el 29 Sep 2009 03:59 pm
Ningun interesado en el tema :(

la verdad no donde pueda estar el erroorr
o si tengo que agregar algo mas de codigoo para que se pueda ver..!!

Ayuda..!!! :P

Por carych

37 de clabLevel



 

msie7
Citar            
MensajeEscrito el 04 Oct 2009 01:29 pm
Has probado de poner la URL (http://10.6.2.113/SegHigiene/xml_fotos_estatus_SH.php ) directamente en el explorador, por si da algún error. :?

Por davidlopezgamero

Claber

134 de clabLevel



  Héroes

Port de la Selva - GIRONA

safari
Citar            
MensajeEscrito el 04 Oct 2009 08:51 pm
asi es i me arroja el xml que es el que llamo, en flash. no me carga las fotos poq lo convierto a xml.. y si todo bienn me carga el xml..

toi estancado perdidoo i demas jejej..

Por carych

37 de clabLevel



 

firefox

 

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