Comunidad de diseño web y desarrollo en internet online

problemas al pasar una direccion fisica desde un xml

Citar            
MensajeEscrito el 10 May 2006 03:19 pm
hola a tod@s tengo un .as q recibe valores desde un xml.... opero con estos valores pero en una determinada instancia necesito hacer referencia a una direccion física del disco duro y por supuesto tiene q ir entre comillas. En el XML escribiria <asd var="d:\loqsea" /> y recibiria ese var ... por supuesto sin comillas . Luego llamo en un .fla al .as y me salta un valor undefined... se os curre porque puede ser???? Miles de gracias y un saludo.

Por practicas

10 de clabLevel



 

msie
Citar            
MensajeEscrito el 10 May 2006 04:18 pm
¿Como lo llamas?¿Como es la estructura del xml?, danos datos.

Por bibliotec

6 de clabLevel



Genero:Masculino  

msie
Citar            
MensajeEscrito el 10 May 2006 04:40 pm
en el xml tngo lo siguiente:
lo q sea.XML
<etiqueta direccion="'Arbol.flv'" objeto="'FLVPlayback'" instancia="'my_vp'" >
</etiqueta>
en el .AS
generror_xml= new XML();
generror_xml.instancia ="";
generror_xml.skinflv ="";
generror_xml.objeto ="";
generror_xml.direccion ="";
generror_xml.ignoreWhite = true;
generror_xml.onLoad = function(success) {
this.instancia = generror_xml.firstChild.attributes.instancia;
this.skinflv = generror_xml.firstChild.attributes.skinflv;
this.objeto = generror_xml.firstChild.attributes.objeto;
this.ancho = generror_xml.firstChild.attributes.ancho;
this.alto = generror_xml.firstChild.attributes.alto;
success = true ? trace(this.direccion):null;
};
generror_xml.load("loqsea.xml");
this[inst_vp].contentPath = "D:/Mis Proyectos/water.flv";

LO QUE QUIERO HACER ES NO DEPENDER DEL TEXTO SINO DE LA VARIABLE
THIS.DIRECCION

BUENO a ver si hay suerte pq estoi bastante atascado con esto.... GRACIAS!!!!!!

Por practicas

10 de clabLevel



 

msie

 

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