Código :
function traerProducto(producto:String) {
if (producto == undefined){
//Nada
}else{
_root.final_mc._visible = true;
_root.espere._visible = true;
var datos:LoadVars = new LoadVars();
datos.refProducto = producto;
datos.sendAndLoad(_parent.carpetaContenido+"seleccionaProducto.php",datos,"post");
datos.onLoad = function() {
xmlFinal.parseXML(datos.respuesta);
_root.final_mc.refProducto_txt.htmlText = "<b>"+"Ref."+"</b>"+xmlFinal.childNodes[0].childNodes[0].childNodes[1].firstChild.toString()
_root.final_mc.liquidacion_txt.htmlText = xmlFinal.childNodes[0].childNodes[0].childNodes[3].firstChild.toString()
_root.final_mc.precio_txt.htmlText = xmlFinal.childNodes[0].childNodes[0].childNodes[7].firstChild.toString ()+"€"
_root.final_mc.producto_txt.htmlText = "<b>"+xmlFinal.childNodes[0].childNodes[0].childNodes[5].firstChild.toString ()+"</b>"
_root.final_mc.descripcion_txt.htmlText = xmlFinal.childNodes[0].childNodes[0].childNodes[6].firstChild.toString ()
_root.final_mc.gran.loadMovie (direccionWeb+"2_"+xmlFinal.childNodes[0].childNodes[0].childNodes[8].firstChild.toString (),"_level0")
_root.final_mc.mini1.loadMovie (direccionWeb+"4_"+xmlFinal.childNodes[0].childNodes[0].childNodes[8].firstChild.toString (),"_level0")
_root.final_mc.mini1.onRelease = function () {
agrandarFoto("8")
}
_root.final_mc.mini2.loadMovie (direccionWeb+"4_"+xmlFinal.childNodes[0].childNodes[0].childNodes[9].firstChild.toString ())
_root.final_mc.mini2.onRelease = function () {
agrandarFoto("9")
}
_root.espere._visible = false;
}
};
}
No se si lo entendereis... pero bueno es mas o menos para que mireis haber si alguien encuentra algun fallo...
