Ver Mensaje Individual
  #3 (permalink)  
Antiguo 04/07/2008, 01:18
nicolaspalma
 
Fecha de Ingreso: mayo-2008
Ubicación: Ñuñoa, Santiago.
Mensajes: 18
Antigüedad: 15 años, 11 meses
Puntos: 0
Respuesta: Cargar xml en swf cargado desde otro swf

Hola Serxu,

Gracias, pero no me ha funcionado.... les envio el code para que lo vean...


Código HTML:
velador_MC._lockroot = true
var input_xml = new XML();
input_xml.contentType = "text/xml";
input_xml.onLoad = function(success){
if (success){
_root.mono.text = this.firstChild.firstChild.attributes.modx;
this.firstChild.firstChild.attributes.mody;
//nameevento.text = this.firstChild.firstChild.attributes.mitexto;
//namelugar.text = this.firstChild.firstChild.attributes.mifecha;
}
else{
modx.text = "Error loading input XML";
}
}

var output_xml = new XML();	
output_xml.ignoreWhite = true;
var xml_file = "user.xml";
var server_file = "editor.user.php";

onLoad = function(){
input_txt.text = "Loading...";
input_xml.load(xml_file + "?uniq=" + new Date().getTime());
}
envi.onRelease = function(){
input_xml.firstChild.firstChild.attributes.modx = _root.velador_MC._x;
input_xml.firstChild.firstChild.attributes.mody = _root.velador_MC._y;
//input_xml.firstChild.firstChild.attributes.mitexto = nameevento.text;
input_xml.sendAndLoad(server_file, output_xml);
input_txt.text = "Loading...";
}